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 xuning at 2007-04-19 07:54:48 on Problem 2140
In Reply To:提问一个诡异的问题 Posted by:SherlockBourne at 2007-03-30 14:04:33
> 我的方法是统计小于N的奇数个数 这样是可以AC的,但是后来觉得似乎还要再减去
> N / P < (P - 1) / 2 (P是可以被P整除的奇数)的部分 也就是说开头数的第一个数字<0的部分 这个想法正确么(当然是错误的……因为不减的AC了。。。)? 牛人指点 !
你说的没有错,可是还要加上2M个数和是N的情况,比如N=45,5+6+7+8+9+10成立

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