Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
我找到错误了In Reply To:必胜客在召唤^_^ Posted by:outstanding at 2006-01-23 22:13:14 " while(scanf("%c", &c) != EOF) { if(c != '\n') { s += c; } else { ...... " 如果输入数据的最后没有回车那么你的程序就会TLE 正确的写法是: while(scanf("%s",s)!=EOF){ ... } 必胜客什么时候请啊? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator