| ||||||||||
| 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 | |||||||||
Re:如果是到某个单词时恰好80个 字符,不是还要输出空格么,那不就超80个字符么In Reply To:为什么这个程序可以AC,它一旦遇到回车就输出,可是题目中的sample input可以接受回车,总体输出 Posted by:acmfan at 2006-08-17 12:05:39 > len=len+1+strlen(t);//len恰为80
> if(len>80)
> {printf("\n");
> len=strlen(t);
> }
> printf("%s ",t);//这里打印单词加空格
> }
> }
> printf("\n");
> }
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator