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:纠结死了,WA了好长时间,结果加了个d<=0当-1处理就AC了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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator