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:太绝了,,

Posted by chenqiong at 2007-07-22 00:34:43 on Problem 1019
In Reply To:分段,再一个一个区间把N对应的数字套住 Posted by:wrong123 at 2005-12-06 19:37:35
越少的代码,,越绝,,实在是看不明白,,,
   n=n-b[i-1]*(j-1)-i*j*(j-1)/2; 
      k=b[i-1]*j+i*j*(j+1)/2;    

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