代码改变世界

随笔档案-2012年9月3日

【菜鸟做水题】:杭电 find your present(用异或的解题思想)

2012-09-03 21:30 by ATP_, 338 阅读, 收藏,
摘要: Problem DescriptionIn the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of presents now putting on the desk, and only one of them will be yours.Each present has a card number on it, and your present's card number will b 阅读全文

【菜鸟做水题】:杭电 hide handkerchief (辗转相除判断2数互质)

2012-09-03 20:28 by ATP_, 297 阅读, 收藏,
摘要: Problem DescriptionThe Children’s Day has passed for some days .Has you remembered something happened at your childhood? I remembered I often played a game called hide handkerchief with my friends.Now I introduce the game to you. Suppose there are N people played the game ,who sit on the ground form 阅读全文