09 2018 档案

摘要:http://poj.org/problem?id=2387 Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes 阅读全文
posted @ 2018-09-30 17:22 _Zlrrr 阅读(174) 评论(0) 推荐(0)
摘要:http://acm.ocrosoft.com/problem.php?cid=1316&pid=8 题目描述 浙江杭州某镇共有n个人,请找出该镇上的前m个大富翁. 浙江杭州某镇共有n个人,请找出该镇上的前m个大富翁. 输入 输入包含多组测试用例. 每个用例首先包含2个整数n(0<n<=100000 阅读全文
posted @ 2018-09-30 11:32 _Zlrrr 阅读(408) 评论(0) 推荐(0)
摘要:http://acm.ocrosoft.com/problem.php?cid=1316&pid=11 题目描述 求两个大的正整数相减的差。 求两个大的正整数相减的差。 输入 共2行,第1行是被减数a,第2行是减数b(a > b)。每个大整数不超过200位,不会有多余的前导零。 共2行,第1行是被减 阅读全文
posted @ 2018-09-30 11:25 _Zlrrr 阅读(273) 评论(0) 推荐(0)
摘要:http://acm.ocrosoft.com/problem.php?cid=1316&pid=10 题目描述 求两个不超过200位的非负整数的和。 求两个不超过200位的非负整数的和。 输入 有两行,每行是一个不超过200位的非负整数,可能有多余的前导0。 有两行,每行是一个不超过200位的非负 阅读全文
posted @ 2018-09-30 11:24 _Zlrrr 阅读(179) 评论(0) 推荐(0)
摘要:http://acm.ocrosoft.com/problem.php?cid=1316&pid=4 题目描述 根据世界某权威学会的一项调查,学信息学的学生IQ非常高。举个最好的例子,如果我们把学信息学的一些学生调去学数学,那么两个竞赛的学生平均IQ都会提升!!现在给出一群数学竞赛全体学生的IQ和信 阅读全文
posted @ 2018-09-30 11:08 _Zlrrr 阅读(442) 评论(0) 推荐(0)
摘要:http://acm.ocrosoft.com/problem.php?cid=1316&pid=15 题目描述 编程打印如下规律的n*n方阵。输入n,按规律输出方阵。 方阵规律如下图:使左对角线和右对角线上的元素为0,它们上方的元素为1,左方的元素为2,下方元素为3,右方元素为4,下图是一个符合条 阅读全文
posted @ 2018-09-30 11:07 _Zlrrr 阅读(783) 评论(0) 推荐(0)
摘要:http://acm.ocrosoft.com/problem.php?cid=1316&pid=49 题目描述 把十进制到二进制的转换。 把十进制到二进制的转换。 输入 234 234 输出 11101010 11101010 样例输入 样例输出 代码: 阅读全文
posted @ 2018-09-29 20:56 _Zlrrr 阅读(246) 评论(0) 推荐(0)
摘要:http://acm.ocrosoft.com/problem.php?cid=1316&pid=12 题目描述 小明想当丑国的总统,丑国大选是按各州的投票结果来确定最终的结果的,如果得到超过一半的州的支持就可以当选,而每个州的投票结果又是由该州选民投票产生的,如果某个州超过一半的选民支持小明,则他 阅读全文
posted @ 2018-09-29 19:20 _Zlrrr 阅读(614) 评论(0) 推荐(0)
摘要:http://acm.ocrosoft.com/problem.php?cid=1316&pid=9 题目描述 小明刚从美国回来,发现手上还有一些未用完的美金,于是想去银行兑换成人民币。可是听说最近人民币将会升值,并从金融机构得到了接下来十二个月可能的美元对人民币汇率,现在,小明想要在接下来一年中把 阅读全文
posted @ 2018-09-29 15:13 _Zlrrr 阅读(573) 评论(0) 推荐(0)
摘要:http://acm.ocrosoft.com/problem.php?cid=1316&pid=3 题目描述 小明的手机每天消费1元,每消费K元就可以获赠1元,一开始小明有M元,问最多可以用多少天? 输入 输入包括多个测试实例。每个测试实例包括2个整数M,K(2<=k<=M<=1000)。M=0, 阅读全文
posted @ 2018-09-29 14:11 _Zlrrr 阅读(449) 评论(0) 推荐(0)
摘要:http://acm.ocrosoft.com/problem.php?cid=1316&pid=2 题目描述 挂盐水的时候,如果滴起来有规律,先是滴一滴,停一下;然后滴二滴,停一下;再滴三滴,停一下...,现在有一个问题:这瓶盐水一共有VUL毫升,每一滴是D毫升,每一滴的速度是一秒(假设最后一滴不 阅读全文
posted @ 2018-09-29 11:40 _Zlrrr 阅读(442) 评论(0) 推荐(0)
摘要:http://poj.org/problem?id=1611 Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat 阅读全文
posted @ 2018-09-29 11:33 _Zlrrr 阅读(170) 评论(0) 推荐(0)
摘要:http://poj.org/problem?id=2236 An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with 阅读全文
posted @ 2018-09-29 08:10 _Zlrrr 阅读(431) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1272 Problem Description 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向 阅读全文
posted @ 2018-09-28 19:31 _Zlrrr 阅读(131) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1213 Problem Description Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ign 阅读全文
posted @ 2018-09-28 17:31 _Zlrrr 阅读(163) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2151 Problem Description 自从见识了平安夜苹果的涨价后,Lele就在他家门口水平种了一排苹果树,共有N棵。突然Lele发现在左起第P棵树上(从1开始计数)有一条毛毛虫。为了看到毛毛虫变蝴蝶的过 阅读全文
posted @ 2018-09-27 16:07 _Zlrrr 阅读(102) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2120 Problem Description ice_cream's world is a rich country, it has many fertile lands. Today, the queen of 阅读全文
posted @ 2018-09-27 15:22 _Zlrrr 阅读(188) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805342720868352/problems/994805504927186944 With the 2010 FIFA World Cup running, football fans the world over were 阅读全文
posted @ 2018-09-27 09:44 _Zlrrr 阅读(324) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/994805275146436608 本题要求将给定的 N 个正整数按非递增的顺序,填入“螺旋矩阵”。所谓“螺旋矩阵”,是指从左上角第 1 个格子开始,按顺时针螺旋方向填充。要求矩阵 阅读全文
posted @ 2018-09-26 21:03 _Zlrrr 阅读(730) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2135 Problem Description After the 32nd ACM/ICPC regional contest, Wiskey is beginning to prepare for CET-6. 阅读全文
posted @ 2018-09-26 21:01 _Zlrrr 阅读(223) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1004 Problem Description Contest time again! How excited it is to see balloons floating around. But to tell 阅读全文
posted @ 2018-09-26 20:59 _Zlrrr 阅读(131) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2136 Problem Description Everybody knows any number can be combined by the prime number.Now, your task is te 阅读全文
posted @ 2018-09-25 21:37 _Zlrrr 阅读(230) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1445 Problem Description Many graduate students of Peking University are living in Wanliu Campus, which is 4 阅读全文
posted @ 2018-09-25 12:24 _Zlrrr 阅读(258) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1338 Problem Description Suppose there are M people, including you, playing a special card game. At the begi 阅读全文
posted @ 2018-09-25 11:48 _Zlrrr 阅读(303) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1051 Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known i 阅读全文
posted @ 2018-09-25 11:34 _Zlrrr 阅读(127) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1009 Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the w 阅读全文
posted @ 2018-09-25 10:26 _Zlrrr 阅读(112) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1257 Problem Description 某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某 阅读全文
posted @ 2018-09-24 17:09 _Zlrrr 阅读(114) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1176 Problem Description 都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10 阅读全文
posted @ 2018-09-24 17:06 _Zlrrr 阅读(202) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1029 Problem Description "OK, you are not too bad, em... But you can never pass the next test." feng5166 say 阅读全文
posted @ 2018-09-24 17:04 _Zlrrr 阅读(297) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/994805282389999616 字符串 APPAPT 中包含了两个单词 PAT,其中第一个 PAT 是第 2 位(P),第 4 位(A),第 6 位(T);第二个 PAT 是第 阅读全文
posted @ 2018-09-23 20:34 _Zlrrr 阅读(528) 评论(0) 推荐(1)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/994805278589960192 著名的快速排序算法里有一个经典的划分过程:我们通常采用某种方法取一个元素作为主元,通过交换,把比主元小的元素放到它的左边,比主元大的元素放到它的 阅读全文
posted @ 2018-09-23 18:50 _Zlrrr 阅读(246) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/994805261493977088 对于在中国大学MOOC(http://www.icourse163.org/ )学习“数据结构”课程的学生,想要获得一张合格证书,必须首先获得不 阅读全文
posted @ 2018-09-23 18:32 _Zlrrr 阅读(585) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/994805320306507776 卡拉兹(Callatz)猜想已经在1001中给出了描述。在这个题目里,情况稍微有些复杂。 当我们验证卡拉兹猜想的时候,为了避免重复计算,可以记录 阅读全文
posted @ 2018-09-23 18:24 _Zlrrr 阅读(189) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805342720868352/problems/994805526272000000 This time, you are supposed to find A+B where A and B are two polynomial 阅读全文
posted @ 2018-09-23 12:56 _Zlrrr 阅读(260) 评论(0) 推荐(1)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1798 Problem Description There are two circles in the plane (shown in the below picture), there is a common 阅读全文
posted @ 2018-09-21 19:33 _Zlrrr 阅读(161) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1159 Problem Description A subsequence of a given sequence is the given sequence with some elements (possibl 阅读全文
posted @ 2018-09-21 16:13 _Zlrrr 阅读(88) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1087 Problem Description Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very po 阅读全文
posted @ 2018-09-21 15:54 _Zlrrr 阅读(144) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2139 Problem Description You just need to calculate the sum of the formula: 1^2+3^2+5^2+……+ n ^2. Input In e 阅读全文
posted @ 2018-09-21 13:46 _Zlrrr 阅读(276) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2131 Problem Description Mickey is interested in probability recently. One day , he played a game which is a 阅读全文
posted @ 2018-09-20 16:15 _Zlrrr 阅读(189) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805342720868352/problems/994805495863296000 A reversible prime in any number system is a prime whose "reverse" in th 阅读全文
posted @ 2018-09-18 19:33 _Zlrrr 阅读(576) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805342720868352/problems/994805523835109376 As an emergency rescue team leader of a city, you are given a special ma 阅读全文
posted @ 2018-09-18 12:28 _Zlrrr 阅读(974) 评论(2) 推荐(1)
摘要:https://pintia.cn/problem-sets/994805342720868352/problems/994805442671132672 Shuffling is a procedure used to randomize a deck of playing cards. Beca 阅读全文
posted @ 2018-09-17 16:45 _Zlrrr 阅读(709) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/994805291311284224 给定一个正整数数列,和正整数 p,设这个数列中的最大值是 M,最小值是 m,如果 M≤mp,则称这个数列是完美数列。 现在给定参数 p 和一些正 阅读全文
posted @ 2018-09-16 20:16 _Zlrrr 阅读(332) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/994805307551629312 宋代史学家司马光在《资治通鉴》中有一段著名的“德才论”:“是故才德全尽谓之圣人,才德兼亡谓之愚人,德胜才谓之君子,才胜德谓之小人。凡取人之术,苟 阅读全文
posted @ 2018-09-16 20:13 _Zlrrr 阅读(368) 评论(0) 推荐(1)
摘要:https://pintia.cn/problem-sets/994805046380707840/problems/994805059731177472 新浪微博上有个“悄悄关注”,一个用户悄悄关注的人,不出现在这个用户的关注列表上,但系统会推送其悄悄关注的人发表的微博给该用户。现在我们来做一回网 阅读全文
posted @ 2018-09-16 16:46 _Zlrrr 阅读(496) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805342720868352/problems/994805514284679168 Given a sequence of K integers { N​1​​, N​2​​, ..., N​K​​ }. A continuou 阅读全文
posted @ 2018-09-16 09:45 _Zlrrr 阅读(396) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/994805266942377984 “单身狗”是中文对于单身人士的一种爱称。本题请你从上万人的大型派对中找出落单的客人,以便给予特殊关爱。 输入格式: 输入第一行给出一个正整数 N 阅读全文
posted @ 2018-09-16 09:03 _Zlrrr 阅读(273) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805342720868352/problems/994805516654460928 At the beginning of every day, the first person who signs in the compute 阅读全文
posted @ 2018-09-15 21:33 _Zlrrr 阅读(174) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/1038429484026175488 集装箱运输货物时,我们必须特别小心,不能把不相容的货物装在一只箱子里。比如氧化剂绝对不能跟易燃液体同箱,否则很容易造成爆炸。 本题给定一张不相 阅读全文
posted @ 2018-09-15 10:32 _Zlrrr 阅读(575) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/1038429286185074688 子曰:“三人行,必有我师焉。择其善者而从之,其不善者而改之。” 本题给定甲、乙、丙三个人的能力值关系为:甲的能力值确定是 2 位正整数;把甲的 阅读全文
posted @ 2018-09-15 10:31 _Zlrrr 阅读(179) 评论(0) 推荐(0)
摘要:代码1: 代码2: 代码3: 阅读全文
posted @ 2018-09-14 21:31 _Zlrrr 阅读(149) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805342720868352/problems/994805453203030016 This time you are asked to tell the difference between the lowest grade 阅读全文
posted @ 2018-09-14 21:29 _Zlrrr 阅读(258) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805046380707840/problems/994805061056577536 社交网络中我们给每个人定义了一个“活跃度”,现希望根据这个指标把人群分为两大类,即外向型(outgoing,即活跃度高的)和内向型(introv 阅读全文
posted @ 2018-09-14 21:27 _Zlrrr 阅读(246) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/1038429191091781632 当自然数 n 依次取 1、2、3、……、N 时,算式 ⌊ 有多少个不同的值?(注:⌊ 为取整函数,表示不超过 x 的最大自然数,即 x 的整数 阅读全文
posted @ 2018-09-14 21:25 _Zlrrr 阅读(586) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/1038429065476579328 做作业的时候,邻座的小盆友问你:“五乘以七等于多少?”你应该不失礼貌地围笑着告诉他:“五十三。”本题就要求你,对任何一对给定的正整数,倒着输出 阅读全文
posted @ 2018-09-14 21:24 _Zlrrr 阅读(628) 评论(0) 推荐(0)
摘要:https://pintia.cn/problem-sets/994805260223102976/problems/994805301562163200 月饼是中国人在中秋佳节时吃的一种传统食品,不同地区有许多不同风味的月饼。现给定所有种类月饼的库存量、总售价、以及市场的最大需求量,请你计算可以获 阅读全文
posted @ 2018-09-14 21:22 _Zlrrr 阅读(484) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2138 Problem Description Give you a lot of positive integers, just to find out how many prime numbers there 阅读全文
posted @ 2018-09-13 20:26 _Zlrrr 阅读(186) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2175 Problem Description 1,2,...,n表示n个盘子.数字大盘子就大.n个盘子放在第1根柱子上.大盘不能放在小盘上. 在第1根柱子上的盘子是a[1],a[2],...,a[n]. a[1] 阅读全文
posted @ 2018-09-13 20:24 _Zlrrr 阅读(220) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2190 Problem Description 下面是512汶川大地震部分受灾学校伤亡情况(惨痛!!)1、 四川省都江堰市 聚源中学伤亡情况:遇难学生人数(含失踪)320详细说明: 一栋教学楼被震垮,该楼18个班4 阅读全文
posted @ 2018-09-13 20:23 _Zlrrr 阅读(811) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2163 Problem Description Write a program to determine whether a word is a palindrome. A palindrome is a sequ 阅读全文
posted @ 2018-09-13 20:21 _Zlrrr 阅读(254) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2161 Problem Description Write a program to read in a list of integers and determine whether or not each num 阅读全文
posted @ 2018-09-12 21:03 _Zlrrr 阅读(275) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2149 Problem Description 虽然不想,但是现实总归是现实,Lele始终没有逃过退学的命运,因为他没有拿到奖学金。现在等待他的,就是像FarmJohn一样的农田生涯。要种田得有田才行,Lele听说 阅读全文
posted @ 2018-09-12 20:10 _Zlrrr 阅读(137) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2148 Problem Description 转眼又到了一年的年末,Lele又一次迎来了期末考试。虽然说每年都要考试,不过今年的这场考试对Lele来说却意义重大。因为经济原因,如果今年没有排在班级前几名,而拿不到 阅读全文
posted @ 2018-09-12 19:57 _Zlrrr 阅读(192) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2133 Problem Description Today is Saturday, 17th Nov,2007. Now, if i tell you a date, can you tell me what d 阅读全文
posted @ 2018-09-12 19:55 _Zlrrr 阅读(238) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2112 Problem Description 经过锦囊相助,海东集团终于度过了危机,从此,HDU的发展就一直顺风顺水,到了2050年,集团已经相当规模了,据说进入了钱江肉丝经济开发区500强。这时候,XHD夫妇也 阅读全文
posted @ 2018-09-12 19:52 _Zlrrr 阅读(170) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2187 Problem Description 时间:2008年5月16日(震后第4天)地点:汶川县牛脑寨人物:羌族老奶奶【转载整理】牛脑寨是一个全村600多人的羌族寨子,震后几天,这里依然能常常听到隆隆的声音,那 阅读全文
posted @ 2018-09-11 21:30 _Zlrrr 阅读(236) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2124 Problem Description Long time ago , Kitty lived in a small village. The air was fresh and the scenery w 阅读全文
posted @ 2018-09-11 21:27 _Zlrrr 阅读(186) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2117 Problem Description Now give you two integers n m, you just tell me the m-th number after radix point i 阅读全文
posted @ 2018-09-11 21:25 _Zlrrr 阅读(196) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2114 Problem Description Calculate S(n).S(n)=13+23 +33 +......+n3 . Input Each line will contain one integer 阅读全文
posted @ 2018-09-11 21:23 _Zlrrr 阅读(209) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2115 Problem Description Do you like playing basketball ? If you are , you may know the NBA Skills Challenge 阅读全文
posted @ 2018-09-11 21:20 _Zlrrr 阅读(243) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2104 Problem Description The Children’s Day has passed for some days .Has you remembered something happened 阅读全文
posted @ 2018-09-11 21:17 _Zlrrr 阅读(211) 评论(0) 推荐(0)
摘要:题目大意: 农夫约翰为了修理栅栏 要将一块很长的木板切成 $N$ 块 准备切成的木板长度为 $L1, L2, L3......$ 未切割前木板长度刚好是切后木板长度和 每次切断木板的时候 需要的开销为这段木板的长度 样例: $N = 3, L = {8, 5, 8}$ 输出: 34 时间复杂度:$O 阅读全文
posted @ 2018-09-11 10:07 _Zlrrr 阅读(133) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=3466 Problem Description Recently, iSea went to an ancient country. For such a long time, it was the most we 阅读全文
posted @ 2018-09-06 10:43 _Zlrrr 阅读(119) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2602 Problem Description Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector 阅读全文
posted @ 2018-09-06 10:40 _Zlrrr 阅读(100) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2546 Problem Description 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则 阅读全文
posted @ 2018-09-06 10:38 _Zlrrr 阅读(90) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2680 Problem Description One day , Kiki wants to visit one of her friends. As she is liable to carsickness , 阅读全文
posted @ 2018-09-02 16:49 _Zlrrr 阅读(190) 评论(0) 推荐(0)