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

input data里究竟都有什么啊-_-

Posted by wywcgs at 2006-03-28 15:03:23 on Problem 2789
读取第二行的时候,用
scanf("%s", word);
if(getchar() == '\n') break;
这样做总是Runtime Error,后来忽略了行尾空格,还是不行,最后换成用gets()读取第二行,之后判断,才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