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

HOHO~c语言学得真好,像考试题目一样

Posted by 044100324 at 2007-07-28 14:35:21 on Problem 1032
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:
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