Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:谁知道112B是怎么编的!(附148的,不能减了)

Posted by majia001 at 2006-07-12 13:08:20 on Problem 1032
In Reply To:谁知道112B是怎么编的!(附148的,不能减了) Posted by:majia001 at 2006-07-11 16:52:19
还可以减,GCC,103B
m,i;main(n){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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator