Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:感觉此题有问题啊,大牛们过来看看

Posted by 1272406003 at 2010-04-13 16:13:10 on Problem 3414
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator