摘要: 本来坐等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) 编辑