摘要: Taxes CodeForces - 735D Mr. Funt now lives in a country with a very specific tax laws. The total income of mr. Funt during this year is equal to n (n  阅读全文
posted @ 2018-09-08 00:15 *starry* 阅读(306) 评论(0) 推荐(0) 编辑
摘要: Lucky Queries CodeForces - 145E Petya loves lucky numbers very much. Everybody knows that lucky numbers are positive integers whose decimal record con 阅读全文
posted @ 2018-09-06 20:36 *starry* 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Traffic Jams in the Land CodeForces - 498D Some country consists of (n + 1) cities, located along a straight highway. Let's number the cities with con 阅读全文
posted @ 2018-09-06 11:52 *starry* 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 飞行路线 Alice和Bob现在要乘飞机旅行,他们选择了一家相对便宜的航空公司。该航空公司一共在n个城市设有业务,设这些城市分别标记为0到n-1,一共有m种航线,每种航线连接两个城市,并且航线有一定的价格。Alice和Bob现在要从一个城市沿着航线到达另一个城市,途中可以进行转机。航空公司对他们这次 阅读全文
posted @ 2018-09-02 23:58 *starry* 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 变色龙 避役(学名:Chamaeleonidae)(英语:chameleon)俗称变色龙,蜥蜴亚目(Sauria)避役科(Chamaeleontidae)爬行类,产于东半球。特征为体色能变化,它在每天会进行变色,可以变成N种颜色之一,将这些颜色标号为0,1,2...N-1。最近研究发现变色龙不是靠色 阅读全文
posted @ 2018-08-30 10:33 *starry* 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 我们一起学猫叫 一起喵喵喵喵喵 Description 我们一起学猫叫 一起喵喵喵喵喵 在你面前撒个娇 哎呦喵喵喵喵喵 我的心脏砰砰跳 迷恋上你的坏笑 你不说爱我我就喵喵喵 《西虹市首富》的故事发生在《夏洛特烦恼》中的特烦恼之城西虹市。 混迹于丙级业余足球队的守门员王多鱼(沈腾饰),因比赛失利被开除 阅读全文
posted @ 2018-08-30 08:53 *starry* 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Blizzard Blizzard Blizzard Description 在魔兽争霸之冰封王座中有一个叫冰川的地图,里面有魔法传送阵,可以传送到这个此传送阵的对称传送阵位置。假设地图是圆形的,地图中心也就是圆心,在圆上每个点都有一个传送阵,可以传送到与地图圆心中心对称的位置。现在因为贪婪的大魔法 阅读全文
posted @ 2018-08-30 08:02 *starry* 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 坤坤的最佳咖啡 坤坤的最佳咖啡 坤坤的最佳咖啡 Description 为了在课堂上保持清醒和专注,坤坤需要一些咖啡! 作为咖啡爱好者的它想知道煮一杯完美咖啡的最佳温度。事实上,它花了一段时间阅读了一些书籍。某些本书表明,咖啡应该在[Li,Ri]度之间酿造,以达到最佳口味。 坤坤认为,它要煮出完美咖 阅读全文
posted @ 2018-08-29 09:41 *starry* 阅读(154) 评论(0) 推荐(0) 编辑
摘要: HDU-3664 Permutation Counting Given a permutation a1, a2, … aN of {1, 2, …, N}, we define its E-value as the amount of elements where ai > i. For exam 阅读全文
posted @ 2018-08-28 17:00 *starry* 阅读(117) 评论(0) 推荐(0) 编辑
摘要: A Simple Math Problem HDU-1757 Lele now is thinking about a simple function f(x). If x < 10 f(x) = x. If x >= 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 阅读全文
posted @ 2018-08-20 21:41 *starry* 阅读(180) 评论(0) 推荐(0) 编辑