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

关于while(scanf("%s%s",s1,s2)!=EOF)&&while(gets(s))的问题

Posted by feiyingshizhe at 2007-09-04 12:49:20 on Problem 2243
开始用的前者,结果tle
后来改成后面的情况,就ac了31ms

舍友说可能是scanf读取的问题
我也不清楚
不过前者的确需要两个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