2014年2月9日

Text Reverse

摘要: Problem DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then output them.InputThe input contains several test cases. The first line of the input is a single integer T which is the number of test c 阅读全文

posted @ 2014-02-09 16:21 acm_shun 阅读(1298) 评论(0) 推荐(0) 编辑

16进制A+B

摘要: Problem DescriptionMany classmates said to me that A+B is must needs. If you can’t AC this problem, you would invite me for night meal. ^_^InputInput may contain multiple test cases. Each case contains A and B in one line. A, B are hexadecimal number. Input terminates by EOF.OutputOutput A+B in deci 阅读全文

posted @ 2014-02-09 15:37 acm_shun 阅读(374) 评论(0) 推荐(0) 编辑

Elevator (又见水题)

摘要: Problem Description The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seconds to move the elevator up one floor, and 4 seconds to move down one floor. Th 阅读全文

posted @ 2014-02-09 15:10 acm_shun 阅读(392) 评论(0) 推荐(0) 编辑

导航