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就过了,有人知道这是为什么吗 ?

Posted by S07zld at 2009-08-21 11:36:48 on Problem 1458
In Reply To:用scanf就超时,换成cin就过了,有人知道这是为什么吗 ? Posted by:fisher_lei at 2007-11-19 13:40:18
要有结束判断!

以前是while(cin>>x>>y)是wa

现在while(scanf("%s%s",x,y) != EOF)就ac了

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