随笔分类 -  简单ACM题

上一页 1 2 3 4 下一页

HDU 1009 FatMouse' Trade(贪心)
摘要:FatMouse' TradeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20968Accepted Submission(s): 6501Problem DescriptionFatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBea 阅读全文

posted @ 2012-03-13 23:41 kuangbin 阅读(9357) 评论(0) 推荐(3)

VK Cup 2012 Qualification Round 1 E. Phone Talks
摘要:E. Phone Talkstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCool J has recently become a businessman Mr. Jackson, and he has to make a lot of phone calls now. Today he has n calls planned. For each call we know the moment ti (in seconds since t 阅读全文

posted @ 2012-03-05 16:31 kuangbin 阅读(488) 评论(0) 推荐(0)

VK Cup 2012 Qualification Round 1 D. Ice Sculptures
摘要:D. Ice Sculpturestime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Berland University is preparing to celebrate the 256-th anniversary of its founding! A specially appointed Vice Rector for the celebration prepares to decorate the campus. In th 阅读全文

posted @ 2012-03-05 16:30 kuangbin 阅读(654) 评论(0) 推荐(0)

VK Cup 2012 Qualification Round 1 B. Taxi
摘要:B. Taxitime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter the lessons n groups of schoolchildren went outside and decided to visit Polycarpus to celebrate his birthday. We know that the i-th group consists of si friends (1 ≤ si ≤ 4), and they 阅读全文

posted @ 2012-03-05 16:28 kuangbin 阅读(549) 评论(0) 推荐(0)

VK Cup 2012 Qualification Round 1 A. Next Round
摘要:A. Next Roundtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output"Contestant who earns a score equal to or greater than the k-th place finisher's score will advance to the next round, as long as the contestant earns a positive score..." 阅读全文

posted @ 2012-03-05 16:26 kuangbin 阅读(870) 评论(0) 推荐(0)

迎接2012新赛季——HDOJ系列热身赛(2) Problem A HDU 4161 Iterated Difference
摘要:Problem ATime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 0Accepted Submission(s): 0Problem DescriptionYou are given a list of N non-negative integers a(1), a(2), ... , a(N). You replace the given list by a new list: the k-th entry of the new list i 阅读全文

posted @ 2012-03-03 13:11 kuangbin 阅读(454) 评论(0) 推荐(0)

青蛙过河~~~~
摘要:青蛙过河Time Limit: 1000 MSMemory Limit: 65535 KTotal Submit: 29(11 users)Total Accepted: 9(9 users)Special Judge: NoDescription在河上有一座独木桥,一只青蛙想沿着独木桥从河的一侧跳到另一侧。在桥上有一些石子,青蛙很讨厌踩在这些石子上。由于桥的长度和青蛙一次跳过的距离都是正整数,我们可以把独木桥上青蛙可能到达的点看成数轴上的一串整点:0,1,……,L(其中L是桥的长度)。坐标为0的点表示桥的起点,坐标为L的点表示桥的终点。青蛙从桥的起点开始,不停的向终点方向跳跃。一次跳跃的距离 阅读全文

posted @ 2012-02-27 15:16 kuangbin 阅读(2981) 评论(9) 推荐(0)

HDU1084 What Is Your Grade?(水题,简单)
摘要:What Is Your Grade?Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4032Accepted Submission(s): 1198Problem Description“Point, point, life of student!”This is a ballad(歌谣)well known in colleges, and you must care about your score in this exam too. H 阅读全文

posted @ 2011-11-01 17:32 kuangbin 阅读(2774) 评论(0) 推荐(0)

HDU 1086 You can Solve a Geometry Problem too(水题,判断线段相交)
摘要:You can Solve a Geometry Problem tooTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3077Accepted Submission(s): 1452Problem DescriptionMany geometry(几何)problems were designed in the ACM/ICPC. And now, I also prepare a geometry problem for this fina 阅读全文

posted @ 2011-11-01 01:12 kuangbin 阅读(1776) 评论(0) 推荐(0)

HDU 1088 Write a simple HTML Browser(水题)
摘要:Write a simple HTML BrowserTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3398Accepted Submission(s): 890Problem DescriptionIf you ever tried to read a html document on a Macintosh, you know how hard it is if no Netscape is installed. Now, who can 阅读全文

posted @ 2011-11-01 00:50 kuangbin 阅读(2098) 评论(0) 推荐(0)

hdu 4018 Parsing URL(水题)
摘要:Parsing URLTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 520Accepted Submission(s): 321Problem DescriptionIn computing, a Uniform Resource Locator or Universal Resource Locator (URL) is a character string that specifies where a known resource is 阅读全文

posted @ 2011-10-04 14:33 kuangbin 阅读(787) 评论(0) 推荐(0)

ACM POJ 3981 字符串替换(简单题)
摘要:字符串替换Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5975Accepted: 2795Description编写一个C程序实现将字符串中的所有"you"替换成"we"Input输入包含多行数据 每行数据是一个字符串,长度不超过1000 数据以EOF结束Output对于输入的每一行,输出替换后的字符串Sample Inputyou are what you doSample Outputwe are what we doSource#include<stdio.h>#in 阅读全文

posted @ 2011-09-15 22:25 kuangbin 阅读(1106) 评论(0) 推荐(0)

ACM POJ 3979 分数加减法(水题)
摘要:开学以来,各种忙碌,好久没有刷题了。。。。今天在POJ刷了题,,,很简单分数加减法Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 8389Accepted: 2668Description编写一个C程序,实现两个分数的加减法Input输入包含多行数据 每行数据是一个字符串,格式是"a/boc/d"。 其中a, b, c, d是一个0-9的整数。o是运算符"+"或者"-"。 数据以EOF结束 输入数据保证合法Output对于输入数据的每一行输出两个分数的运算结果。 注意结 阅读全文

posted @ 2011-09-15 22:08 kuangbin 阅读(1709) 评论(0) 推荐(0)

ACM HDU Tiles of Tetris, NOT!(简单题)
摘要:Tiles of Tetris, NOT!Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 569Accepted Submission(s): 229Problem DescriptionYou’ve really messed up this time. “Go buy some square tiles” your supervisor told you. But as usual, you were either busy reading 阅读全文

posted @ 2011-08-27 19:04 kuangbin 阅读(748) 评论(2) 推荐(1)

ACM HDU 3354 Probability One(简单题)
摘要:Probability OneTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 301Accepted Submission(s): 224Problem DescriptionNumber guessing is a popular game between elementary-school kids. Teachers encourage pupils to play the game as it enhances their arithm 阅读全文

posted @ 2011-08-27 17:29 kuangbin 阅读(763) 评论(0) 推荐(0)

ACM HDU 3353 Not So Flat After All(简单题)
摘要:Not So Flat After AllTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 517Accepted Submission(s): 209Problem DescriptionAny positive integer v can be written as p1 a1 * p2 a2 * . . . pnan where pi is a prime number and ai >= 0. For example: 24 = 2 阅读全文

posted @ 2011-08-27 17:28 kuangbin 阅读(529) 评论(0) 推荐(0)

ACM HDU 1177 "Accepted today?"(简单题)
摘要:"Accepted today?"Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1476Accepted Submission(s): 649Problem DescriptionDo you remember a sentence "Accepted today?" Yes, the sentence is mentioned frequently in lcy's course " 阅读全文

posted @ 2011-08-12 17:03 kuangbin 阅读(932) 评论(0) 推荐(0)

ACM HDU 1174 爆头(数学题,求空间点到直线的距离,用叉积)
摘要:爆头Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 752Accepted Submission(s): 275Problem Descriptiongameboy是一个CS高手,他最喜欢的就是扮演警察,手持M4爆土匪的头。也许这里有人没玩过CS,有必要介绍一下“爆头”这个术语:所谓爆头,就是子弹直接命中对方的头部,以秒杀敌人。现在用一个三维的直角坐标系来描述游戏中的三维空间(水平面为xoy平面,z轴正方向是上方)。假设游戏中角色的头是一个标准 阅读全文

posted @ 2011-08-12 14:42 kuangbin 阅读(1578) 评论(1) 推荐(0)

ACM HDU 1173 采矿(很爽的水题)
摘要:采矿Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 694Accepted Submission(s): 385Special JudgeProblem Description某天gameboy玩魔兽RPG。有一个任务是在一个富含金矿的圆形小岛上建一个基地,以最快的速度采集完这个小岛上的所有金矿。这个小岛上有n(0<n<1000000)个金矿,每个金矿的矿藏量是相等的。而且这个小岛的地势非常平坦,所以基地可以建在小岛的任何位置,每 阅读全文

posted @ 2011-08-12 13:29 kuangbin 阅读(1188) 评论(1) 推荐(0)

ACM HDU 1172 猜数字 (枚举法)
摘要:猜数字Time Limit: 20000/10000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 852Accepted Submission(s): 481Problem Description猜数字游戏是gameboy最喜欢的游戏之一。游戏的规则是这样的:计算机随机产生一个四位数,然后玩家猜这个四位数是什么。每猜一个数,计算机都会告诉玩家猜对几个数字,其中有几个数字在正确的位置上。比如计算机随机产生的数字为1122。如果玩家猜1234,因为1,2这两个数字同时存在于这两个数中,而 阅读全文

posted @ 2011-08-12 13:13 kuangbin 阅读(3253) 评论(0) 推荐(0)

上一页 1 2 3 4 下一页

导航

JAVASCRIPT: