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

我的一点不同理解

Posted by crazyyangdan at 2012-01-20 18:35:34 on Problem 3210
有一点与大家可能不同  n是偶数肯定不行 k的取值0~n 
 讨论当n是奇数时 n=偶+基; 所以k可以是最大基
也可是最大偶 如 5=0+5; 最大基数为 5;5=1+4;最大偶数为4;  当k取偶数时翻转那些偶数的牌,有剩余 就正反颠倒着玩。当n是奇数时就把奇数的牌都翻转一遍和偶数的牌方向一致。有剩余就拿一张牌来回翻转着玩。 所以k可是n也可是n-1

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