摘要: When Valera has got some free time, he goes to the library to read some books. Today he's got t free minutes to read. That's why Valera took n books i 阅读全文
posted @ 2017-04-21 14:46 天之道,利而不害 阅读(485) 评论(0) 推荐(0) 编辑
摘要: A TV show called "Guess a number!" is gathering popularity. The whole Berland, the old and the young, are watching the show. The rules are simple. The 阅读全文
posted @ 2017-04-21 14:35 天之道,利而不害 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Description 今天是校赛的日子,为了庆祝这么喜庆的日子,TMK打算买些礼物给女票LSH庆祝一下。 TMK进入了雪梨超市,然后刚踏入的一瞬间,店主就对TMK说:“恭喜你成为了本店第2147483647位顾客,本店在搞一个活动,对本店第2147483647位顾客进行赠送活动。你先看看你有多少钱 阅读全文
posted @ 2017-03-28 22:07 天之道,利而不害 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the 阅读全文
posted @ 2017-03-22 14:19 天之道,利而不害 阅读(274) 评论(0) 推荐(0) 编辑
摘要: XX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure 超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过程中最高速度与最低速度的差越小乘坐越舒服 阅读全文
posted @ 2017-03-15 00:49 天之道,利而不害 阅读(203) 评论(0) 推荐(0) 编辑
摘要: As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in th 阅读全文
posted @ 2017-03-10 21:44 天之道,利而不害 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。 Input测试输入包含若干测试用例。每个测试用例的第1行给出 阅读全文
posted @ 2017-03-08 20:38 天之道,利而不害 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will be. Of course there 阅读全文
posted @ 2017-03-05 23:17 天之道,利而不害 阅读(224) 评论(0) 推荐(0) 编辑
摘要: ice_cream's world is a rich country, it has many fertile lands. Today, the queen of ice_cream wants award land to diligent ACMers. So there are some w 阅读全文
posted @ 2017-03-01 17:06 天之道,利而不害 阅读(188) 评论(0) 推荐(0) 编辑
摘要: A binary tree is a finite set of vertices that is either empty or consists of a root r and two disjoint binary trees called the left and right subtree 阅读全文
posted @ 2017-02-28 23:02 天之道,利而不害 阅读(261) 评论(0) 推荐(0) 编辑