11764 - Jumping Mario

摘要: Mario is in the final castle. He now needs to jump over few walls and then enter the Koopa’s Chamber where he has to defeat the monster in order to save the princess. For this problem, we are only concerned with the “jumping over the wall” part. You will be given the heights of N walls from left to 阅读全文
posted @ 2013-02-17 13:21 喂喂还债啦 阅读(1063) 评论(0) 推荐(0)

11875 - Brick Game

摘要: There is a village in Bangladesh, where brick game is very popular. Brick game is a team game. Each team consists of odd number of players. Number of players must be greater than 1 but cannot be greater than 10. Age of each player must be within 11 and 20. No two players can have the same age. There 阅读全文
posted @ 2013-02-17 13:04 喂喂还债啦 阅读(359) 评论(0) 推荐(0)

11936 - The Lazy Lumberjacks

摘要: Once upon a time in a far, far away forest, there was a team of lazy lumberjacks. Since they were too lazy to cut trees, they were always figuring out ways to sneak out of work. Their foreman, on the other side, was always trying to put them all to work.After a lot of discussions the foreman and the 阅读全文
posted @ 2013-02-17 11:44 喂喂还债啦 阅读(332) 评论(0) 推荐(0)

11942 - Lumberjack Sequencing

摘要: Another tale of lumberjacks?. Let see ...The lumberjacks are rude, bearded workers, while foremen tend to be bossy and simpleminded. The foremen like to harass the lumberjacks by making them line up in groups of ten, ordered by the length of their beards. The lumberjacks, being of different physical 阅读全文
posted @ 2013-02-17 11:31 喂喂还债啦 阅读(598) 评论(0) 推荐(0)