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:只要(A-B)是偶数就可以 的说明

Posted by wangxiaoheng at 2009-05-02 19:10:49 on Problem 1844
In Reply To:Re:只要(A-B)是偶数就可以 的说明 Posted by:xtu845 at 2009-02-22 19:58:27
> A=1+2+3...+i;B为题目输入
> (A-B)为偶数 
> 1+2+3+...+i 一定能表示这个偶数
> 
> 先说这样一个事实 1,2,...,i这i个数一定能表示从1到(1+i)*i/2这些数
> 比如:1,2,3这三个数
> 1:1
> 2:2
> 3:1+2
> 4:1+3;
> 5:2+3;
> 6:1+2+3;
> 
> 所以上面结论就显然了 

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