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

wa的同胞请注意:

Posted by xuhanqiu at 2008-08-17 12:26:58 on Problem 1061
要注意3点就好了:
1.结果会超过int型,所以用__int64 
   --- 自己检查一下code,看看自己用了乘法没(应该不会用加法的)
2.就是在解同余方程时,需要求出最小的一个解!  注意,是最小的一个,看看自己能保证求出来的解是最小的一个吗.

3.至于scanf(); 或 while(scanf() != EOF) 两种方式都可以AC的,无所谓.但建议就算题目没说有多个case,还是使用后者吧,反正不吃亏.

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