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 |
谁知道112B是怎么编的!(附148的,不能减了)main(){int i,n,m=2,a[49];scanf("%d",&n);while((n-=a[m-2]=m++)>=0);for(i=m-=4;n+m+3;){a[i]++;n--;if(!i--)i=m;}for(i=-1;++i-m-1;)printf("%d ",a[i]);} Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator