摘要: 现在,这里有一个功能: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 <= x <=100) 当x在0到100之间时,你能找到最小值吗? 输入 第一行包含一个整数T(1 < = T < = 100),这意味着测试用例的数量。然后T行,每一行只有一个实数Y。(0 < 阅读全文
posted @ 2017-08-24 00:23 听说这是最长的名字了 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 我的生日快到了,传统上我正在做馅饼。不只是一个馅饼,不,我有N个,各种口味和各种尺寸。 数量为F我的朋友会来到我的聚会,每个人都得到一个馅饼。 这应该是一块馅饼,而不是几个小块,因为看起来很乱。这一块可以是一整块。我的朋友们很烦人,如果他们中的一个比其他人得到更大的一块,他们就会开始抱怨。因此,他们 阅读全文
posted @ 2017-08-21 16:58 听说这是最长的名字了 阅读(450) 评论(0) 推荐(0) 编辑
摘要: Ignatius刚刚从第30届ACM / ICPC回到学校。现在他有很多作业要做。每个老师给他一个截止作业的截止日期。如果Ignatius在截止日期之后进行了家庭作业,老师将减少他的最终考试成绩。现在我们假设做每个老师的作业总是需要一天的时间。以Ignatius希望你帮他安排做作业的顺序来减少分数的 阅读全文
posted @ 2017-08-17 15:19 听说这是最长的名字了 阅读(372) 评论(0) 推荐(0) 编辑
摘要: FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has 阅读全文
posted @ 2017-08-17 11:28 听说这是最长的名字了 阅读(347) 评论(0) 推荐(0) 编辑
摘要: “今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%...” 确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。 作为球迷,一定想看尽量多的完整的比赛,当然,作为新时代的好青年,你一定还会看一些其它的节目,比如新闻联播(永 阅读全文
posted @ 2017-08-17 10:31 听说这是最长的名字了 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Problem Description Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. 阅读全文
posted @ 2017-08-16 11:03 听说这是最长的名字了 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 求A^B的最后三位数表示的整数。 说明:A^B的含义是“A的B次方” Input输入数据包含多个测试实例,每个实例占一行,由两个正整数A和B组成(1<=A,B<=10000),如果A=0, B=0,则表示输入数据的结束,不做处理。Output对于每个测试实例,请输出A^B的最后三位表示的整数,每个输 阅读全文
posted @ 2017-08-14 11:33 听说这是最长的名字了 阅读(407) 评论(0) 推荐(0) 编辑
摘要: To improve the organization of his farm, Farmer John labels each of his N (1 <= N <= 5,000) cows with a distinct serial number in the range 1..20,000. 阅读全文
posted @ 2017-08-14 11:32 听说这是最长的名字了 阅读(426) 评论(0) 推荐(0) 编辑
摘要: Write a program to read in a list of integers and determine whether or not each number is prime. A number, n, is prime if its only divisors are 1 and 阅读全文
posted @ 2017-08-14 11:31 听说这是最长的名字了 阅读(275) 评论(0) 推荐(0) 编辑
摘要: The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For e 阅读全文
posted @ 2017-08-14 11:28 听说这是最长的名字了 阅读(256) 评论(0) 推荐(0) 编辑