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:纠结死了,WA了好长时间,结果加了个d<=0当-1处理就AC了

Posted by ryanwong0127 at 2015-05-17 10:21:37 on Problem 1328
In Reply To:纠结死了,WA了好长时间,结果加了个d<=0当-1处理就AC了 Posted by:852995325 at 2014-11-22 23:34:24
大哥,我加了你的条件之后怎么就RuntimeError了呢。后来才看到问题出在应该是if(n == 0 || d == 0)而不是if(n == 0 && d == 0)的时候跳出。

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