上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: Danil decided to earn some money, so he had found a part-time job. The interview have went well, so now he is a light switcher. Danil works in a roote 阅读全文
posted @ 2018-05-07 20:48 Styx-ferryman 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Mad scientist Mike has constructed a rooted tree, which consists of n vertices. Each vertex is a reservoir which can be either empty or filled with wa 阅读全文
posted @ 2018-05-07 14:05 Styx-ferryman 阅读(387) 评论(0) 推荐(1) 编辑
摘要: Description 相传,在远古时期,位于西方大陆的 Magic Land 上,人们已经掌握了用魔法矿石炼制法杖的技术。那时人们就认识到,一个法杖的法力取决于使用的矿石。一般地,矿石越多则法力越强,但物极必反:有时,人们为了获取更强的法力而使用了很多矿石,却在炼制过程中发现魔法矿石全部消失了,从 阅读全文
posted @ 2018-05-05 11:06 Styx-ferryman 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the lucky digits 4 and 阅读全文
posted @ 2018-05-01 20:17 Styx-ferryman 阅读(554) 评论(0) 推荐(1) 编辑
摘要: The New Year holidays are over, but Resha doesn't want to throw away the New Year tree. He invited his best friends Kerim and Gural to help him to red 阅读全文
posted @ 2018-04-29 10:15 Styx-ferryman 阅读(278) 评论(0) 推荐(0) 编辑
摘要: You have a rooted tree consisting of n vertices. Each vertex of the tree has some color. We will assume that the tree vertices are numbered by integer 阅读全文
posted @ 2018-04-27 21:02 Styx-ferryman 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Description 作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中找出一双来穿。终于有一天,小Z再也无法忍受这恼人的找袜子过程,于是他决定听天由命……具体来说,小Z把这N只袜子从1到N编号,然后从编号L到R(L 尽管小Z并不在意两只袜子是不是完整的一双,甚至不在意两只袜子是 阅读全文
posted @ 2018-04-23 09:49 Styx-ferryman 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Description HH有一串由各种漂亮的贝壳组成的项链。HH相信不同的贝壳会带来好运,所以每次散步 完后,他都会随意取出一 段贝壳,思考它们所表达的含义。HH不断地收集新的贝壳,因此他的项链变得越来越长。有一天,他突然提出了一 个问题:某一段贝壳中,包含了多少种不同的贝壳?这个问题很难回答。。 阅读全文
posted @ 2018-04-23 08:34 Styx-ferryman 阅读(249) 评论(0) 推荐(2) 编辑
摘要: 题目描述 Linux用户和OSX用户一定对软件包管理器不会陌生。通过软件包管理器,你可以通过一行命令安装某一个软件包,然后软件包管理器会帮助你从软件源下载软件包,同时自动解决所有的依赖(即下载安装这个软件包的安装所依赖的其它软件包),完成所有的配置。Debian/Ubuntu使用的apt-get,F 阅读全文
posted @ 2018-04-21 12:19 Styx-ferryman 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Description 根据一些书上的记载,上帝的一次失败的创世经历是这样的: 第一天, 上帝创造了一个世界的基本元素,称做“元”。 第二天, 上帝创造了一个新的元素,称作“α”。“α”被定义为“元”构成的集合。容易发现,一共有两种不同的“α”。 第三天, 上帝又创造了一个新的元素,称作“β”。“β 阅读全文
posted @ 2018-04-20 16:03 Styx-ferryman 阅读(202) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页