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:虽然自己的程序还是AC不了。。。这题目卡了我这么久还是说点啥。。大牛们见笑了恩小弟拜过了

Posted by 3017216129 at 2018-08-04 19:45:32 on Problem 3414
In Reply To:虽然自己的程序还是AC不了。。。这题目卡了我这么久还是说点啥。。大牛们见笑了恩小弟拜过了 Posted by:zonelight at 2009-05-22 02:51:11
> 91,100,95这个数据 AC的代码应该是170个步骤的。。如果输出impossible那就是程序有问题。。。我就是这样。。。但是步骤太多根本没法查哪里不对。。。
> 我拿别人AC的程序看的结果:
> 91 100 95
> 170
> FILL(1)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> DROP(2)
> POUR(1,2)
> FILL(1)
> POUR(1,2)
> 
> 另外说一下自己这题目的一个收获。。。WA又不知道哪里不对真是很郁闷的事。。。。于是今晚想出了个法子。。。。。。。。。。。OJ上的题目提交出现WA。。在没有测试数据的情况下。。可以这样试试:
> 拿别人AC的代码还有自己的代码。。。。小做下修改。。。看看能不能把输入改成一种循环。。比如这题可以把输入改成ABC三个数字三个嵌套的1到100(不过1到100这样规模太大。。。我自己试就死机了。。)。。。然后利用C++的fstream。。把两个程序的结果输出到两个TXT文本中。。。然后再写个小程序读取两个文本每行的内容作下比对。。。出现不一样的行就是自己的代码输出结果和别人不一样的地方了。。。。。
> 有经验的大牛们这些小技巧可能都知道吧。。。小第献丑了恩= =

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