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 |
Re:谁知道112B是怎么编的!(附148的,不能减了)In Reply To:Re:谁知道112B是怎么编的!(附148的,不能减了) Posted by:majia001 at 2006-07-12 13:08:20 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