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 |
一行搞定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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator