
水题
文章平均质量分 71
傲慢的么么forever
待到学有所成时,我会找到人生的意义。
展开
-
POJ 3641 Pseudoprime numbers
Pseudoprime numbersTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7396 Accepted: 3050DescriptionFermat's theorem states that for any prime number p and for any integer a > 1, ap原创 2015-08-09 16:50:17 · 521 阅读 · 0 评论 -
HDU 1257 最少拦截系统
最少拦截系统Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23798 Accepted Submission(s): 9333Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.原创 2015-04-30 20:16:58 · 413 阅读 · 0 评论 -
HDU 1052Tian Ji -- The Horse Racing
Tian Ji -- The Horse RacingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20809 Accepted Submission(s): 6081Problem DescriptionHere原创 2015-04-30 20:09:24 · 397 阅读 · 0 评论 -
HDU 1049 Climbing Worm
Climbing WormTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13790 Accepted Submission(s): 9340Problem DescriptionAn inch worm is at原创 2015-04-30 19:47:53 · 354 阅读 · 0 评论 -
HDU 1009 FatMouse' Trade
FatMouse' TradeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 50683 Accepted Submission(s): 16959Problem DescriptionFatMouse prepare原创 2015-04-30 18:25:04 · 349 阅读 · 0 评论 -
第二届省赛 A:简单计算
Problem A: 简单计算Time Limit: 5 Sec Memory Limit: 128 MBSubmit: 65 Solved: 39[Submit][Status][Web Board]Description给出n个十进制的数,找出这n个数的二进制表示中1的个数最少的数。Input输入的第一行为一个正整数T(1≤T≤20),代表测试数据组原创 2015-04-29 14:41:44 · 429 阅读 · 0 评论 -
第二节省赛:D:正方形
Description在二维坐标轴内给出四个点,这四个点能否构成一个正方形。Input第一行包括一个整数:T(1≤T≤30),表明有T组测试数据。下面各行有8个整数:x1,y1,x2,y2,x3,y3,x4,y4(数据均在-1000,1000之间),以逆时针顺序给出四个点的坐标。Output对每个样例,如果是正方形,则单独在一行内输出YES,否则,输出N原创 2015-04-29 14:46:03 · 477 阅读 · 0 评论 -
HDU 1017 A Mathematical Curiosity
A Mathematical CuriosityTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 28368 Accepted Submission(s): 9022Problem Description原创 2015-01-10 09:49:47 · 414 阅读 · 0 评论 -
HDU 1031 Design T-Shirt
Design T-ShirtTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6302 Accepted Submission(s): 2944Problem DescriptionSoon after原创 2015-01-11 12:04:21 · 389 阅读 · 0 评论 -
HDU 1022 Train Problem I
Train Problem ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22420 Accepted Submission(s): 8481Problem DescriptionAs the ne原创 2015-01-11 11:11:50 · 333 阅读 · 0 评论 -
HDU 1034 Candy Sharing Game
Candy Sharing GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3321 Accepted Submission(s): 2071Problem DescriptionA numbe原创 2015-01-11 10:18:49 · 412 阅读 · 0 评论 -
HDU 1800 Flying to the Mars
Flying to the MarsTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12656 Accepted Submission(s): 4021Problem DescriptionIn the yea原创 2015-04-30 20:21:48 · 352 阅读 · 0 评论 -
HDU 2037 今年暑假不AC
今年暑假不ACTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 33668 Accepted Submission(s): 17905Problem Description“今年暑假不AC?”“是的。”“那你干什原创 2015-04-30 20:24:17 · 343 阅读 · 0 评论 -
HDU 2111Saving HDU
Saving HDUTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6322 Accepted Submission(s): 2920Problem Description话说上回讲到海东集团面临内外交困,公司的元老也原创 2015-04-30 20:28:52 · 403 阅读 · 0 评论 -
POJ 1995 Raising Modulo Numbers
Raising Modulo NumbersTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 5343 Accepted: 3122DescriptionPeople are different. Some secretly read magazines full of interesting girls' pi原创 2015-08-09 16:28:11 · 492 阅读 · 0 评论 -
Aizu 0009 Prime Number
Prime NumberWrite a program which reads an integer n and prints the number of prime numbers which are less than or equal to n. A prime number is a natural number which has exactly two distinct nat原创 2015-07-28 18:10:15 · 685 阅读 · 0 评论 -
Aizu 0005 GCD and LCM
GCD and LCMWrite a program which computes the greatest common divisor (GCD) and the least common multiple (LCM) of given a and b (0 InputInput consists of several data sets. Each data set co原创 2015-07-28 17:33:35 · 511 阅读 · 0 评论 -
poj 1862 Stripies
StripiesTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 13278 Accepted: 6255DescriptionOur chemical biologists have invented a new very useful form of life called stripies (in fact原创 2015-06-14 19:03:59 · 411 阅读 · 0 评论 -
POJ 2386 Lake Counting
Lake CountingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 22854 Accepted: 11526DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which i原创 2015-05-19 09:55:44 · 382 阅读 · 0 评论 -
POJ 1852 Ants
AntsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 11415 Accepted: 5059DescriptionAn army of ants walk on a horizontal pole of length l cm, each with a constant speed of 1 cm/s. W原创 2015-05-19 09:48:02 · 453 阅读 · 0 评论 -
POJ 2229 Sumsets
SumsetsTime Limit: 2000MS Memory Limit: 200000KTotal Submissions: 14323 Accepted: 5699DescriptionFarmer John commanded his cows to search for different sets of numbers that sum to a given nu原创 2015-06-20 13:42:12 · 453 阅读 · 0 评论 -
POJ 3176 Cow Bowling
Cow BowlingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 15199 Accepted: 10111DescriptionThe cows don't use actual bowling balls when they go bowling. They each take a number (in原创 2015-06-20 12:01:55 · 445 阅读 · 0 评论 -
POJ 3187 Backward Digit Sums
Backward Digit SumsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5001 Accepted: 2876DescriptionFJ and his cows enjoy playing a mental game. They write down the numbers from 1 to原创 2015-05-21 15:31:45 · 407 阅读 · 0 评论 -
HDU 2187 悼念512汶川大地震遇难同胞——老人是真饿了
悼念512汶川大地震遇难同胞——老人是真饿了Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9355 Accepted Submission(s): 3859Problem Description时间:2008年5月1原创 2015-04-30 20:36:32 · 439 阅读 · 0 评论 -
HDU 1004 Let the Balloon Rise
Let the Balloon RiseTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 79774 Accepted Submission(s): 29991Problem DescriptionCon原创 2015-01-10 11:59:01 · 390 阅读 · 0 评论 -
蓝桥杯 历届试题 分糖果
历届试题 分糖果 时间限制:1.0s 内存限制:256.0MB 问题描述 有n个小朋友围坐成一圈。老师给每个小朋友随机发偶数个糖果,然后进行下面的游戏: 每个小朋友都把自己的糖果分一半给左手边的孩子。 一轮分糖后,拥有奇数颗糖的孩子由老师补给1个糖果,从而变成偶数。 反复进行这个游戏,直到所有小朋友的糖果数都相同为原创 2014-11-22 15:26:53 · 4748 阅读 · 3 评论 -
NYOJ 题目8 一种排序
一种排序时间限制:3000 ms | 内存限制:65535 KB难度:3描述现在有很多长方形,每一个长方形都有一个编号,这个编号可以重复;还知道这个长方形的宽和长,编号、长、宽都是整数;现在要求按照一下方式排序(默认排序规则都是从小到大);1.按照编号从小到大排序2.对于编号相等的长方形,按照长方形的长排序;3.如果编号和长都相同,按照长原创 2014-10-09 20:25:01 · 516 阅读 · 0 评论 -
NYOJ 题目111 分数加减法
分数加减法时间限制:3000 ms | 内存限制:65535 KB难度:2描述 编写一个C程序,实现两个分数的加减法输入输入包含多行数据 每行数据是一个字符串,格式是"a/boc/d"。 其中a, b, c, d是一个0-9的整数。o是运算符"+"或者"-"。 数据以EOF结束 输入数据保证合法输出对于输入数据的每一行输出两个分数的运算结果。 注意结原创 2014-06-11 19:22:24 · 595 阅读 · 0 评论 -
POJ 1046 Color Me Less
Color Me LessTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 29983 Accepted: 14535DescriptionA color reduction is a mapping from a set of discrete colors原创 2014-05-28 14:56:43 · 440 阅读 · 0 评论 -
POJ 2017 Speed Limit
Speed LimitTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 16851 Accepted: 11810DescriptionBill and Ted are taking a road trip. But the odometer in their原创 2014-05-28 12:37:25 · 455 阅读 · 0 评论 -
NYOJ 题目113 字符串替换
字符串替换时间限制:3000 ms | 内存限制:65535 KB难度:2描述 编写一个程序实现将字符串中的所有"you"替换成"we"输入输入包含多行数据 每行数据是一个字符串,长度不超过1000 数据以EOF结束输出对于输入的每一行,输出替换后的字符串样例输入you are what you do样例输出we are what we do原创 2014-06-11 14:30:59 · 604 阅读 · 0 评论 -
POJ 2000 Gold Coins
Gold CoinsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 20796 Accepted: 13014DescriptionThe king pays his loyal knight in gold coins. On the first day o原创 2014-05-28 12:32:37 · 606 阅读 · 0 评论 -
POJ 1218 THE DRUNK JAILER
THE DRUNK JAILERTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 22824 Accepted: 14385DescriptionA certain prison contains a long hall of n cells, each rig原创 2014-05-28 12:35:39 · 439 阅读 · 0 评论 -
NYOJ 题目199 无线网络覆盖
无线网络覆盖时间限制:3000 ms | 内存限制:65535 KB难度:3描述 我们的乐乐同学对于网络可算得上是情有独钟,他有一个计划,那就是用无线网覆盖郑州大学。现在学校给了他一个机会,因此他要购买很多的无线路由。现在他正在部署某条大道的网络,而学校只允许把他的无线路由器放在路的正中间。我们默认这条大道是笔直的并且它在任何地方的宽度都一样。并且所有的路由器的覆盖面积原创 2014-06-10 19:24:51 · 755 阅读 · 0 评论 -
NYOJ 题目401 Coin Game
Coin Game时间限制:1000 ms | 内存限制:32768 KB难度:2描述After hh has learned how to play Nim game, he begins to try another coin game which seems much easier.The game goes like this: Tw原创 2014-07-20 17:38:33 · 483 阅读 · 0 评论 -
NYOJ 题目204 Coin Test
Coin Test时间限制:3000 ms | 内存限制:65535 KB难度:1描述 As is known to all,if you throw a coin up and let it droped on the desk there are usually three results. Yes,just believe what I say ~it can be原创 2014-06-10 18:10:34 · 465 阅读 · 0 评论 -
NYOJ 题目400 I'll play a trick on you
I'll play a trick on you时间限制:3000 ms | 内存限制:65535 KB难度:1描述Please look the picture carefully. Then I'll give you two integers and your task is output the third one.Please never doub原创 2014-07-20 17:07:48 · 644 阅读 · 0 评论 -
NYOJ 题目94 cigarettes
cigarettes时间限制:3000 ms | 内存限制:65535 KB难度:2描述 Tom has many cigarettes. We hypothesized that he has n cigarettes and smokes themone by one keeping all the butts. Out of k > 1 butts he ca原创 2014-06-11 19:48:32 · 578 阅读 · 0 评论 -
POJ 1005 I Think I Need a Houseboat
I Think I Need a HouseboatTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 85201 Accepted: 36882DescriptionFred Mapper is considering purchasing some land原创 2014-05-29 08:08:05 · 602 阅读 · 0 评论 -
NYOJ 题目25 A Famous Music Composer
A Famous Music Composer时间限制:1000 ms | 内存限制:65535 KB难度:1描述 Mr. B is a famous music composer. One of his most famous work was his set of preludes. These 24 pieces span the 24 musical keys (t原创 2014-06-11 21:31:48 · 737 阅读 · 0 评论