上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 76 下一页
该文被密码保护。 阅读全文
posted @ 2017-09-19 20:55 Kaiser- 阅读(5) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-09-18 16:43 Kaiser- 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 那么我们开三个不上升队列, 第一个记录原来的蚯蚓, 第二个记录乘以p的蚯蚓 第三个记录乘以(1-p)的蚯蚓, 在记录每条就要入队列的时间,就可以求出增加的长度 每次比较三个队列的队首,取最大的值x的切。 将xp加入第二个队列的队尾 将x(1-p)加入第三个队列的队尾 (第二个第三个队列保证单调,上面 阅读全文
posted @ 2017-09-17 21:18 Kaiser- 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Abwad在nbc即将完成她的程序的时候,急中生智拔掉了她电脑的电源线,争取到了宝贵的时间。作为著名论文《论Ctrl-C与Ctrl-V在信息学竞赛中的应用》的作者,他巧妙地使用了这种上古秘术,顺利扳回一城。 在决胜局中,Abwad决定和nbc鏖战字符串,比的是谁能更快地将一个“量子态的字符串”删除。 阅读全文
posted @ 2017-09-17 21:06 Kaiser- 阅读(258) 评论(0) 推荐(1) 编辑
摘要: 斐波那契数列的定义为:k=0或1时,F[k]=k;k>1时,F[k]=F[k-1]+F[k-2]。数列的开头几项为0,1,1,2,3,5,8,13,21,34,55,…你的任务是判断给定的数字能否被表示成两个斐波那契数的乘积。 Input 第一行包含一个整数t(1<=t<=10),表示询问数量。接下 阅读全文
posted @ 2017-09-17 17:59 Kaiser- 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 寒假来了,又到了小明和女神们约会的季节。 小明虽为屌丝级码农,但非常活跃,女神们常常在小明网上的大段发言后热情回复“呵呵”,所以,小明的最爱就是和女神们约会。与此同时,也有很多基友找他开黑,由于数量实在过于巨大,怎么安排时间便成了小明的一大心事。 我们已知小明一共有T的空闲时间,期间会有很多女神或者 阅读全文
posted @ 2017-09-17 17:12 Kaiser- 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Alice is so popular that she can receive many flowers everyday. She has N vases numbered from 0 to N-1. When she receive some flowers, she will try to 阅读全文
posted @ 2017-09-17 16:13 Kaiser- 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Yuanfang is puzzled with the question below: There are n integers, a 1, a 2, …, a n. The initial values of them are 0. There are four kinds of operati 阅读全文
posted @ 2017-09-17 15:53 Kaiser- 阅读(207) 评论(0) 推荐(0) 编辑
摘要: There is a company that has N employees(numbered from 1 to N),every employee in the company has a immediate boss (except for the leader of whole compa 阅读全文
posted @ 2017-09-17 15:38 Kaiser- 阅读(113) 评论(0) 推荐(0) 编辑
摘要: During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, vil 阅读全文
posted @ 2017-09-17 15:25 Kaiser- 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 76 下一页