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 heike567 at 2009-08-22 09:48:22 on Problem 1844
In Reply To:如此的精简...... Posted by:zjp at 2009-08-22 08:58:33
main(){int i=1,j=0,s;scanf("%d",&s);while(j<s||(j-s)%2){j=j+i++;}printf("%d\n",i-1);}

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