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

Faint!!!水到一种境界了。。。

Posted by IceKingdom at 2008-10-11 11:10:30 on Problem 3210
题目说的是必须要翻k次。
如果n是偶数,分成两个奇数(即,正的奇数个,反的奇数个)那么必要翻奇数次
           分成两个偶数,必要翻偶数次。故无解
如果n是奇数,只能分成一奇一偶,显然翻n-1次就行了(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