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:请问,我的这个代码为什么会RE呢?谢谢:)

Posted by ACMTino at 2005-08-30 20:27:48 on Problem 2499
In Reply To:Re:请问,我的这个代码为什么会RE呢?谢谢:) Posted by:ACMTino at 2005-08-30 20:25:17
if(a%b==0)temp--;

hah, I find the error, because the two "if(a%b==0)temp--;" are the same.
But the other one should be "if(b%a==0)temp--;"
hope you could understand ^^

again b%0 could cause runtime error

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