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:Re:好题啊, 赞一个 Posted by:zjp at 2009-08-22 08:48:33 #include <stdio.h > int main () { int i=1;int s,sum=0; scanf("%d",&s); while (sum<s||(sum-s)%2!=0) sum=sum+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