数学
哈西哈希
这个作者很懒,什么都没留下…
展开
-
UVA 113 Power of Cryptography
YIYI: k ^ n = p; 求k? 原先不知道该用什么类型来存数据,百度下发现double就够存了。 Description Background Current work in cryptography involves (among other things) large prime numbers and computing powers of numbe原创 2015-09-09 15:40:41 · 297 阅读 · 0 评论 -
UVA 621 Secret Research
Description Background Current 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 result原创 2015-09-09 17:16:08 · 322 阅读 · 0 评论 -
UVA 10161 Ant on a Chessboard
yiyi : 先看对角线 你会发现对角线中的值和它的行数之间是有关系的,还有就是后面的数是围着1一圈一圈往外扩的。 我们输入N以后,再根据N的值的大小,从对角线上的数开始找,找的过程要跟据行的奇偶,需要分成不同的情况! 题目: One day, an ant called Alice came to an M*M chessboard. She wanted to go around原创 2015-09-09 16:01:20 · 271 阅读 · 0 评论 -
UVA 591 Box of Bricks
Description Little 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 A原创 2015-09-09 18:40:00 · 423 阅读 · 0 评论 -
UVA 573 The Snail
yiyi:有给测试数据, H 表示墙的高度 U表示白天能爬多少 D表示万事下降多少 F表示疲劳程度 (每天爬的高度都会减少H*F%) 蜗牛是不会往下爬的 要求输出 在第几天爬出 或者在第几天掉回原点。 成功>H 失败 题目: A snail is at the bottom of a 6-foot well and wants to climb to the t原创 2015-09-12 21:19:47 · 227 阅读 · 0 评论 -
UVA 864 Steps
yiyi:开始和结束的步数都是1 而且每一步只能比前一步大1,小1, 或者和上一步相等(我就不懂哪里体现出这个了) 所以从头和尾一起增加步数 用flags变量来控制 题目: Description One steps through integer points of the straight line. The length of a原创 2015-09-12 21:29:52 · 304 阅读 · 0 评论