
模拟
RookieZQF
尽自己最大努力才能不后悔
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
The Intervals
Description Cantor, the famous mathematician, was working on a problem about intervals. Let's start from a line segment of unit length. Remove its middle 1/3. Now remove the middle 1/3's fro翻译 2015-11-16 09:14:48 · 375 阅读 · 0 评论 -
NYOJ 35 表达式求值 or 267 郁闷的C小加(二)
描述 聪明的你帮助C小加解决了中缀表达式到后缀表达式的转换(详情请参考“郁闷的C小加(一)”),C小加很高兴。但C小加是个爱思考的人,他又想通过这种方法计算一个表达式的值。即先把表达式转换为后缀表达式,再求值。这时又要考虑操作数是小数和多位数的情况。 输入第一行输入一个整数T,共有T组测试数据(T 每组测试数据只有一行,是一个长度不超过1000的字符串,表示这个运算式,每个运算式都是以“=翻译 2016-01-23 18:26:54 · 459 阅读 · 0 评论 -
CF 338 Hexagons
Description Ayrat is looking for the perfect code. He decided to start his search from an infinite field tiled by hexagons. For convenience the coordinate system is introduced, take a look at the p翻译 2016-01-19 18:49:30 · 325 阅读 · 0 评论 -
汉诺塔IV
题目描述 还记得汉诺塔III吗?他的规则是这样的:不允许直接从最左(右)边移到最右(左)边(每次移动一定是移到中间杆或从中间移出),也不允许大盘放到小盘的上面。xhd在想如果我们允许最大的盘子放到最上面会怎么样呢?(只允许最大的放在最上面)当然最后需要的结果是盘子从小到大排在最右边。 输入 输入数据的第一行是一个数据T,表示有T组数据。 每组数据有一个正整数n(1翻译 2015-11-30 20:31:32 · 1083 阅读 · 0 评论 -
汉诺塔III
题目描述 约19世纪末,在欧州的商店中出售一种智力玩具,在一块铜板上有三根杆,最左边的杆上自上而下、由小到大顺序串着由64个圆盘构成的塔。目的是将最左边杆上的盘全部移到右边的杆上,条件是一次只能移动一个盘,且不允许大盘放在小盘的上面。 现在我们改变游戏的玩法,不允许直接从最左(右)边移到最右(左)边(每次移动一定是移到中间杆或从中间移出),也不允许大盘放到下盘的上面。 Daisy已经做过原来翻译 2015-11-30 19:39:16 · 399 阅读 · 0 评论 -
汉诺塔II
Problem Description 经典的汉诺塔问题经常作为一个递归的经典例题存在。可能有人并不知道汉诺塔问题的典故。汉诺塔来源于印度传说的一个故事,上帝创造世界时作了三根金刚石柱子,在一根柱子上从下往上按大小顺序摞着64片黄金圆盘。上帝命令婆罗门把圆盘从下面开始按大小顺序重新摆放在另一根柱子上。并且规定,在小圆盘上不能放大圆盘,在三根柱子之间一回只能移动一个圆盘。有预言说,这件事完成时宇宙翻译 2015-11-30 18:45:30 · 595 阅读 · 0 评论 -
Multipliers
Description Ayrat has number n, represented as it's prime factorization pi of size m, i.e. n = p1·p2·...·pm. Ayrat got secret information that that the product of all divisors of n taken modulo翻译 2016-01-17 13:53:51 · 512 阅读 · 0 评论 -
BC66 GTW likes gt
Problem Description Long long ago, there were n adorkable GT. Divided into two groups, they were playing games together, forming a column. The i−th GT would randomly get a value of ability bi.翻译 2015-12-13 09:16:47 · 494 阅读 · 0 评论 -
Same binary weight
描述 The binary weight of a positive integer is the number of 1's in its binary representation.for example,the decmial number 1 has a binary weight of 1,and the decimal number 1717 (which is 11010110翻译 2015-11-19 21:55:04 · 244 阅读 · 0 评论 -
Auction
Description THE 30th ACM/ICPC ASIA REGIONAL 2005 HANGZHOU SITE Onsite Contest Session Problem A: Auction Recently the auction house has introduced a new type of auction, the lowest翻译 2015-11-22 20:09:29 · 572 阅读 · 0 评论 -
Longtail Hedgehog
Description This Christmas Santa gave Masha a magic picture and a pencil. The picture consists of n points connected by m segments (they might cross in any way, that doesn't matter). No two segm翻译 2016-01-12 13:26:23 · 447 阅读 · 0 评论