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:这题的输出结束控制特不爽!!

Posted by langx at 2010-10-02 02:59:56 on Problem 1929 and last updated at 2010-10-02 03:01:26
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:
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