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 |
Faint!!!水到一种境界了。。。题目说的是必须要翻k次。 如果n是偶数,分成两个奇数(即,正的奇数个,反的奇数个)那么必要翻奇数次 分成两个偶数,必要翻偶数次。故无解 如果n是奇数,只能分成一奇一偶,显然翻n-1次就行了(n-1为偶数,我们只翻偶数那种的) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator