zju1005 pascal的解法。好像可以用BFS做。。可是怎么回溯都不对啊。。。求助。。。

[复制链接]
查看11 | 回复1 | 2012-8-21 10:57:44 | 显示全部楼层 |阅读模式
const maxn=1000;type
type1=record
a,b,dep,l,w:longint;
end;var a:array[1..10000]of type1;
b:array[0..maxn,0..maxn]of boolean;
na,nb,mb:longint;procedure out(i:longint);const str:array[1..6]of string=('fill A','fill B','empty A','empty B',
'pour B A','pour...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行