Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:只要(A-B)是偶数就可以 的说明In Reply To:yiyiyi4321的解法说明 Posted by:level at 2006-08-06 21:15:40 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator