随笔分类 -  简单ACM题

上一页 1 2 3 4 下一页

HDU 4492 Mystery (水题)
摘要:MysteryTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 141 Accepted Submission(s): 75 InputThe first line of input contains a single integer P, (1 <= P <= 1000), which is the number of data sets that follow. Each data set consists of severa 阅读全文

posted @ 2013-03-01 21:54 kuangbin 阅读(488) 评论(4) 推荐(0)

第37届ACM/ICPC 金华赛区现场赛最水四道题 HDU 4442 Physical Examination HDU 4450 Draw Something HDU 4451 Dressing HDU 4452 Running Rabbits
摘要:HDU 4442Physical Examination2012年金华赛区现场赛A题。水题,排序后解决。对于两个 a1,b1 和a2,b2;先1后2:a1+a2+a1*b2先2后1: a1+a2+b1*a2;1排在2前面的条件就是: a1*b2<b1*a2.所以按照这个条件排序,然后出结果就可以了。代码实现主要是要处理,会超出int的,最好用long long,或者乘之前强制转换下。代码:HDU 4442#include<stdio.h>#include<iostream>#include<algorithm>#include<string.h& 阅读全文

posted @ 2012-10-29 21:02 kuangbin 阅读(1714) 评论(2) 推荐(0)

HDU 1073 Online Judge (字符串处理,简单题)
摘要:Online JudgeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3389Accepted Submission(s): 1276Problem DescriptionIgnatius is building an Online Judge, now he has worked out all the problems except the Judge System. The system has to read data from co 阅读全文

posted @ 2012-10-28 17:53 kuangbin 阅读(3065) 评论(0) 推荐(1)

HDU 4432 Sum of divisors 第37届ACM/ICPC天津现场赛B题 (简单题)
摘要:Sum of divisorsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 82Accepted Submission(s): 35Problem Descriptionmmm is learning division, she's so proud of herself that she can figure out the sum of all the divisors of numbers no larger than 100 阅读全文

posted @ 2012-10-26 14:23 kuangbin 阅读(1823) 评论(0) 推荐(0)

HDU 4438 Hunters 第37届ACM/ICPC 天津赛区现场赛H题(超级水的题目)
摘要:HuntersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 21Accepted Submission(s): 17Problem DescriptionAlice and Bob are the topmost hunters in the forest, so no preys can escape from them. However, they both think that its hunting skill is better t 阅读全文

posted @ 2012-10-26 14:12 kuangbin 阅读(1570) 评论(0) 推荐(0)

ZOJ 3207 80ers' Memory(水题)
摘要:80ers' MemoryTime Limit: 1 Second Memory Limit: 32768 KBI guess most of us are so called 80ers, which means that we were born in the 1980's. This group of people shared a lot of common memories. For example, the Saint Seiya, the YoYo ball, the Super Mario, and so on. Do you still remember th 阅读全文

posted @ 2012-09-27 18:24 kuangbin 阅读(508) 评论(1) 推荐(0)

HDU 2710 Max Factor (水题)
摘要:Max FactorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2238Accepted Submission(s): 684Problem DescriptionTo 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 阅读全文

posted @ 2012-09-23 09:25 kuangbin 阅读(1464) 评论(0) 推荐(0)

HDU 4287 Intelligent IME 第37届ACM/ICPC天津赛区网络赛1010题 (水题)
摘要:Intelligent IMETime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 399Accepted Submission(s): 207Problem Description We all use cell phone today. And we must be familiar with the intelligent English input method on the cell phone. To be specific, the . 阅读全文

posted @ 2012-09-10 15:46 kuangbin 阅读(917) 评论(0) 推荐(0)

HDU 4278 Faulty Odometer 第37届ACM/ICPC天津赛区网络赛1001题 (简单水题)
摘要:Faulty OdometerTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 312Accepted Submission(s): 228Problem Description You are given a car odometer which displays the miles traveled as an integer. The odometer has a defect, however: it proceeds from the. 阅读全文

posted @ 2012-09-10 15:11 kuangbin 阅读(1480) 评论(0) 推荐(0)

HDU 1047 Integer Inquiry(高精度加法)
摘要:Integer InquiryTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6755Accepted Submission(s): 1723Problem DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 阅读全文

posted @ 2012-08-13 02:41 kuangbin 阅读(5512) 评论(0) 推荐(1)

HDU 1943 Ball bearings(简单数学问题)
摘要:Ball bearingsTime Limit: 5000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 40Accepted Submission(s): 20Problem DescriptionThe Swedish company SKF makes ball bearings. As explained by Britannica Online, a ball bearing is “one of the two types of rolling, or anti 阅读全文

posted @ 2012-08-11 17:15 kuangbin 阅读(722) 评论(0) 推荐(0)

HDU 1039 Easier Done Than Said?(简单题)
摘要:Easier Done Than Said?Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3965Accepted Submission(s): 1999Problem DescriptionPassword security is a tricky thing. Users prefer simple passwords that are easy to remember (like buddy), but such passwords a 阅读全文

posted @ 2012-06-04 01:09 kuangbin 阅读(1533) 评论(0) 推荐(0)

HDU 1038 Biker's Trip Odometer(简单的水题)
摘要:Biker's Trip OdometerTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2098Accepted Submission(s): 1410Problem DescriptionMost bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached 阅读全文

posted @ 2012-06-04 00:50 kuangbin 阅读(2093) 评论(0) 推荐(0)

HDU 1033 Edge (水题)
摘要:EdgeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 886Accepted Submission(s): 576Problem DescriptionFor products that are wrapped in small packings it is necessary that the sheet of paper containing the directions for use is folded until its size 阅读全文

posted @ 2012-06-03 01:26 kuangbin 阅读(1782) 评论(1) 推荐(1)

HDU 2817 A sequence of numbers(数列,简单题)
摘要:A sequence of numbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1129Accepted Submission(s): 359Problem DescriptionXinlv wrote some sequences on the paper a long time ago, they might be arithmetic or geometric sequences. The numbers are not ver 阅读全文

posted @ 2012-04-05 23:08 kuangbin 阅读(2266) 评论(0) 推荐(0)

HDU 1049 Climbing Worm(水题)
摘要:Climbing WormTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7047Accepted Submission(s): 4455Problem DescriptionAn inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minut 阅读全文

posted @ 2012-03-23 11:13 kuangbin 阅读(4186) 评论(1) 推荐(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): 9012Accepted Submission(s): 3310Problem DescriptionAs 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 阅读全文

posted @ 2012-03-16 02:19 kuangbin 阅读(1059) 评论(0) 推荐(0)

HDU 1229 还是A+B(水题)
摘要:还是A+BTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9799Accepted Submission(s): 4814Problem Description读入两个小于10000的正整数A和B,计算A+B。需要注意的是:如果A和B的末尾K(不超过8)位数字相同,请直接输出-1。Input测试输入包含若干测试用例,每个测试用例占一行,格式为"A B K",相邻两数字有一个空格间隔。当A和B同时为0时输入结束,相应的结果不要 阅读全文

posted @ 2012-03-15 02:20 kuangbin 阅读(431) 评论(0) 推荐(0)

HDU 1228 A + B(水题)
摘要:A + BTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7615Accepted Submission(s): 4307Problem Description读入两个小于100的正整数A和B,计算A+B.需要注意的是:A和B的每一位数字由对应的英文单词给出.Input测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出.Outpu 阅读全文

posted @ 2012-03-15 02:14 kuangbin 阅读(461) 评论(0) 推荐(0)

HrbustOJ 1176 小陈老师、雪人 (STL map 和优先队列)
摘要:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1176水了一道比较有意思的题目。其实就是给了很多的数。问最多可以搭配出多少种三个不同的数的组合,并且输出。第1行,包含一个整数n(1≤n≤100000) — 雪球的数量。第2行,包含n个整数 — 雪球的半径r1, r2, ..., rn (1≤ri≤1000000000)给的数比较多,也比较大,所以用map 来存。map 来记录个数。然后用优先队列。把各个数的个数入队列。先取个数最多的三个数,个数减一后要再入队。直到队列为空。map 阅读全文

posted @ 2012-03-14 15:52 kuangbin 阅读(553) 评论(0) 推荐(0)

上一页 1 2 3 4 下一页

导航

JAVASCRIPT: