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

其实还能更简洁的...

Posted by majia001 at 2006-09-02 18:33:55 on Problem 2656
In Reply To:其实还能更简洁的。。。 Posted by:bool at 2006-02-01 13:16:56
t,i;main(n,a,b){for(;scanf("%d",&n),n;i=t=!printf("%d\n",t))for(;++i<=n;!t&&(t=a+b>8?i:0))scanf("%d%d",&a,&b);}

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