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

比如这样呢?(+)

Posted by ZhangQi at 2005-02-04 21:43:54 on Problem 2111
In Reply To:cin就if(!cin)成真的时候表示结束了,scanf就判断返回值 Posted by:hawk at 2005-02-03 16:20:50
有n个testcase,而最后一个testcase后用^Z(结束符)结尾。但结束符直接跟在一个数字后面,比如
12
34
56
78^Z
这时,最后一个整数好像不能用cin>>number读入。
请指教!

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