摘要: 精度控制+查找题目:The Cat in the HatThe Cat in the HatBackground(An homage to Theodore Seuss Geisel) The Cat in the Hat is a nasty creature, But the striped hat he is wearing has a rather nifty feature.With one flick of his wrist he pops his top off.Do you know what's inside that Cat's hat? A bunch 阅读全文
posted @ 2013-03-02 15:15 上白泽慧音 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 没难度~题目: Box of BricksLittle Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wall!'', he tells his older sister Alice. ``Nah, you should make all stacks the same height. Then you would have a real wa 阅读全文
posted @ 2013-03-02 11:18 上白泽慧音 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 算法需要自己猜,参考了题解。题目: The ? 1 ? 2 ? ... ? n = k problemTheproblemGiven the following formula, one can set operators '+' or '-' instead of each '?', in order to obtain a given k? 1 ? 2 ? ... ? n = kFor example: to obtain k = 12 , the expression to be used will be: - 1 + 2 + 3 + 4 阅读全文
posted @ 2013-03-02 10:56 上白泽慧音 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 没啥说的,题目没看懂,但是数据很一般,很好AC。题目: Secret Research Secret ResearchAt a certain laboratory results of secret research are thoroughly encrypted. A result of a single experiment is stored as an information of its completion: `positive result',`negative result',`experiment failed' or`experiment not 阅读全文
posted @ 2013-03-02 10:22 上白泽慧音 阅读(291) 评论(0) 推荐(0) 编辑
摘要: WA的原因竟然因为....竟然因为...把TRUE拼成TURE了...英死早,囧...题目:Cube paintingCube paintingWe have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. The cube's faces are numbered as in Figure 1.Figure 1.Since a cube has 6 阅读全文
posted @ 2013-03-01 22:54 上白泽慧音 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: 开学了,从现在开始吧~题目: Problem A.Ant on a Chessboard Background One day, an ant calledAlice came to an M*M chessboard. She wanted to go around all the grids. So shebegan to walk along the chessboard according to this way: (you can assume thather speed is one grid per second) At the first second,Alice was... 阅读全文
posted @ 2013-03-01 14:00 上白泽慧音 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 本来坐等WA的,十行的代码竟然没出精度问题。题目: Power of CryptographyPower of CryptographyBackgroundCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers modulo functions of these primes. Work in this area has resulted in the practical use of results from number th 阅读全文
posted @ 2013-02-20 17:34 上白泽慧音 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 虽然是sorting的压轴,但是比起前面真心水题。这个专题结合前面string的很多,排序相对简单了,qsort基本解决。题目: The Mad NumerologistNumerology is a science that is used by many people to find out a mans personality, sole purpose of life, desires to experience etc. Some calculations of numerology are very complex, while others are quite simple. Y 阅读全文
posted @ 2013-02-20 16:34 上白泽慧音 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 乍一看以为是挺水的题,结果两次超时我就傻了。推荐做法还是先排序后计数。还有几处“细节”,反正看了好几遍题目,也没搞懂为啥要未满位补零,这是程序员的悟性吗?还有,UVA的最恶心bug,多组数据最后多空格会判WA。可能也算这个oj的“习俗”吧。题目: 487-3279487-3279Businesses like to have memorable telephone numbers. One way to make a telephone number memorableis to have it spell a memorable word or phrase. For example, yo 阅读全文
posted @ 2013-02-20 14:13 上白泽慧音 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 做题晕了,两处笔误没看见,还漏了一个排序条件,真不爽。对了,按字典排序不区分大小写,题目又没说明白。题目: Football (aka Soccer)Problem A: Football (aka Soccer)The ProblemFootball the most popular sport in the world (americans insist to call it "Soccer",but we will call it "Football"). As everyone knows, Brasil is the country that 阅读全文
posted @ 2013-02-19 21:49 上白泽慧音 阅读(485) 评论(0) 推荐(0) 编辑