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

Re:如果是到某个单词时恰好80个 字符,不是还要输出空格么,那不就超80个字符么

Posted by xifanniao at 2007-08-01 14:19:27 on Problem 2271
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:
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