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 |
HOHO~c语言学得真好,像考试题目一样In Reply To:Re:谁知道112B是怎么编的!(附148的,不能减了) Posted by:wpolly at 2007-03-06 13:31:26 > C,111B > main(n){int m=0,i=0;scanf("%d",&n);for(;n>-2;n-=++m);for(n+=3+(m-=2);i<m;i++)printf("%d ",i+2+n/m+(i>=m-n%m));} Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator