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

Hint"while(scanf("%s%d",s,&n)==2)"中的含义!?

Posted by baozf at 2008-04-25 20:01:59 on Problem 1001
while(scanf("%s%d",s,&n)==2)
这句话就是接收两个数据,就进行一次输出。这样写的话,程序不就是死循环?!
不知道我的理解对不?

对数据的测试,他是随机出几组数据测试啊,还是就一次给6组数据,然后一起输出。
我用vc在本地编译没问题,怎么算结果都对,就是没理解他的数据是怎么给的。总是Runtime Error!
郁闷,请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