| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:感觉此题有问题啊,大牛们过来看看In Reply To:感觉此题有问题啊,大牛们过来看看 Posted by:xiaoyisnail at 2009-05-19 21:23:50 谢谢你给的数据啊 ~
1 5 2
4
FILL(1)
POUR(1,2)
FILL(1)
POUR(1,2)
是可行的,下面的是错误的!
我一开始也是运行成了下面的结果,交了就wa了!~
后来慢慢找错误发现
if(va<=b-vb)
{
vb=vb+va;//这两行的顺序搞反了!~ 我的天
va=0;
}
花了我半小时时间去找错,还试着把官网的测试数据找到!~
顺序调准过来就ac了!~写了我160行代码!~ 可以用来写个A×了
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator