摘要: Problem DescriptionA password locker with N digits, each digit can be rotated to 0-9 circularly.You can rotate 1-3 consecutive digits up or down in one step.For examples:567890 -> 567901 (by rotating the last 3 digits up)000000 -> 000900 (by rotating the 4th digit down)Given the current state 阅读全文
posted @ 2013-10-03 21:28 Oyking 阅读(393) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionJapanese Mahjong is a four-player game. The game needs four people to sit around a desk and play with a set of Mahjong tiles. A set of Mahjong tiles contains four copies of the tiles described next:One to nine Man, which we use 1m to 9m to represent;One to nine Sou, which we use 1 阅读全文
posted @ 2013-10-03 17:41 Oyking 阅读(304) 评论(0) 推荐(0) 编辑