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

Posted by comzyh at 2012-12-13 09:34:19 on Problem 2756
用文件输入
1
99 1(不要加回车)
像这样,如果scanf("%c",&c)读不到数据,就会RE
因此要处理if(scanf("%c",&c)==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