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:这题怎么这么变态啊?用 scanf 输入就超时,而用 cin 输入就 0 秒.

Posted by amorzn at 2008-02-03 21:58:33 on Problem 1604
In Reply To:这题怎么这么变态啊?用 scanf 输入就超时,而用 cin 输入就 0 秒. Posted by:gzxx102lsm at 2007-11-24 22:44:10
要while(scanf("%d,&n)!=EOF){
}
就可以了

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