| ||||||||||
| 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:这题的输出结束控制特不爽!!In Reply To:这题的输出结束控制特不爽!! Posted by:Scor at 2008-02-14 21:56:44 ~~~~~~~~~~我的这样写~~~~~~~~~~应该还看得过去
k = 0;
while ( ~scanf("%s",str)) {
if(str[0] == '-') break;
do{
输入处理(k = 0 ...4)
++k;
if(k == 5){
每行处理
k = 0;
}
}while( ~scanf("%s",str) && str[0]!='-');
每个case处理
输出结果
初始化必要变量
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator