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 JaySoon at 2010-11-14 16:35:30 on Problem 2001
在输入的时候用的下面的方法,结果就是错的,因为多了一个空行!
while(scanf("%s", word[len++]) != EOF)

改成下面的方法是AC了
while(scanf("%s", word[len]) != EOF)
    ++len;

看来不能太懒,最后在UE十六进制模式下查看才发现问题!
---(

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