随笔分类 -  ACM(HOJ)题目解题报告

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页

HDU 4022 Bombing (STL应用)
摘要:BombingTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 1377Accepted Submission(s): 533Problem DescriptionIt’s a cruel war which killed millions of people and ruined series of cities. In order to stop it, let’s bomb the opponent’s base.It seems not 阅读全文

posted @ 2012-08-23 16:07 kuangbin 阅读(1818) 评论(0) 推荐(0)

HDU 4021 24 Puzzle
摘要:24 PuzzleTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 1012Accepted Submission(s): 304Problem DescriptionDaniel likes to play a special board game, called 24 puzzle. 24 puzzle is such a game that there are tiles with the number 1 to 23 in a play 阅读全文

posted @ 2012-08-23 14:29 kuangbin 阅读(814) 评论(0) 推荐(0)

HDU 1556 Color the ball(树状数组)
摘要:Color the ballTime Limit: 9000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4258Accepted Submission(s): 2285Problem DescriptionN个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a <= b),lele便为骑上他的“小飞鸽"牌电动车从气球a开始到气球b依次给每个气球涂一次颜色。但是N次以后lele已经忘记了第I个气球已经涂过几次颜色了,你能帮他算出 阅读全文

posted @ 2012-08-23 10:38 kuangbin 阅读(2998) 评论(0) 推荐(1)

HDU 1151 Air Raid(最小路径覆盖)
摘要:Air RaidTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1904Accepted Submission(s): 1225Problem DescriptionConsider a town where all the streets are one-way and each street leads from one intersection to another. It is also known that starting from 阅读全文

posted @ 2012-08-20 00:11 kuangbin 阅读(1511) 评论(0) 推荐(0)

HDU 1150 Machine Schedule(最小点覆盖)
摘要:Machine ScheduleTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3444Accepted Submission(s): 1669Problem DescriptionAs we all know, machine scheduling is a very classical problem in computer science and has been studied for a very long history. Sche 阅读全文

posted @ 2012-08-19 23:42 kuangbin 阅读(3264) 评论(0) 推荐(3)

HDU 1054 Strategic Game(树形DP)
摘要:Strategic GameTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2925Accepted Submission(s): 1222Problem DescriptionBob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is v 阅读全文

posted @ 2012-08-19 22:18 kuangbin 阅读(664) 评论(1) 推荐(0)

HDU 1054 Strategic Game(二分图最小点覆盖)
摘要:Strategic GameTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2916Accepted Submission(s): 1217Problem DescriptionBob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is v 阅读全文

posted @ 2012-08-19 20:40 kuangbin 阅读(1207) 评论(0) 推荐(0)

HDU 4370 0 or 1(最短路)
摘要:0 or 1Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 692Accepted Submission(s): 185Problem DescriptionGiven a n*n matrix Cij (1<=i,j<=n),We want to find a n*n matrix Xij (1<=i,j<=n),which is 0 or 1.Besides,Xij meets the following condi 阅读全文

posted @ 2012-08-17 19:20 kuangbin 阅读(3072) 评论(0) 推荐(1)

HDU 3473 Minimum Sum(划分树,求中位数,小于中位数的和与大于中位数的和)
摘要:Minimum SumTime Limit: 16000/8000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1533Accepted Submission(s): 345Problem DescriptionYou are given N positive integers, denoted as x0, x1 ... xN-1. Then give you some intervals [l, r]. For each interval, you need to find a 阅读全文

posted @ 2012-08-16 01:48 kuangbin 阅读(845) 评论(0) 推荐(0)

HDU 1542 Atlantis(矩形面积并)
摘要:AtlantisTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3469Accepted Submission(s): 1549Problem DescriptionThere are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of parts 阅读全文

posted @ 2012-08-15 22:00 kuangbin 阅读(1254) 评论(0) 推荐(0)

HDU 1255 覆盖的面积(矩形面积交)
摘要:覆盖的面积Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2304Accepted Submission(s): 1136Problem Description给定平面上若干矩形,求出被这些矩形覆盖过至少两次的区域的面积.Input输入数据的第一行是一个正整数T(1<=T<=100),代表测试数据的数量.每个测试数据的第一行是一个正整数N(1<=N<=1000),代表矩形的数量,然后是N行数据,每一行包含四个浮点数,代 阅读全文

posted @ 2012-08-15 21:59 kuangbin 阅读(3894) 评论(0) 推荐(0)

HDU 1540 Tunnel Warfare(线段树,去最大连续区间)
摘要:Tunnel WarfareTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2396Accepted Submission(s): 886Problem DescriptionDuring the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally 阅读全文

posted @ 2012-08-15 21:55 kuangbin 阅读(4974) 评论(0) 推荐(2)

HDU 1698 Just a Hook(线段树,成段更新)
摘要:Just a HookTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9258Accepted Submission(s): 4510Problem DescriptionIn the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecut 阅读全文

posted @ 2012-08-15 02:57 kuangbin 阅读(2465) 评论(0) 推荐(0)

HDU 1394 Minimum Inversion Number(求逆序数,线段树或者树状数组)
摘要:Minimum Inversion NumberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4647Accepted Submission(s): 2809Problem DescriptionThe inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i < j and ai 阅读全文

posted @ 2012-08-15 02:11 kuangbin 阅读(4002) 评论(0) 推荐(1)

HDU 4251 The Famous ICPC Team Again(划分树入门题)
摘要:The Famous ICPC Team AgainTime Limit: 30000/15000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 438Accepted Submission(s): 193Problem DescriptionWhen Mr. B, Mr. G and Mr. M were preparing for the 2012 ACM-ICPC World Final Contest, Mr. B had collected a large set of co 阅读全文

posted @ 2012-08-14 23:12 kuangbin 阅读(730) 评论(0) 推荐(0)

HDU 2665 Kth number(划分树入门题,纯套模板)
摘要:Kth numberTime Limit: 15000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2026Accepted Submission(s): 672Problem DescriptionGive you a sequence and ask you the kth big number of a inteval.InputThe first line is the number of the test cases. For each test case, th 阅读全文

posted @ 2012-08-14 21:01 kuangbin 阅读(1946) 评论(0) 推荐(0)

HDU 1044 Collect More Jewels(搜索,先bfs再dfs)
摘要:Collect More JewelsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2932Accepted Submission(s): 547Problem DescriptionIt is written in the Book of The Lady: After the Creation, the cruel god Moloch rebelled against the authority of Marduk the Creato 阅读全文

posted @ 2012-08-14 10:01 kuangbin 阅读(1831) 评论(0) 推荐(1)

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 1043 Eight POJ 1077 Eight (广度搜索,八数码问题,康托展开)
摘要:HDU 1043 和 POJ 1077 两题类似。。。但是输入不同。HDU 上是同时多组输入,POJ是单组输入。两个限时不同。HDU 上反向搜索,把所有情况打表出来。POJ上正向搜索。这个题很经典,还需要继续做。先把第一次写的代码贴出来吧。继续优化中HDU 1043EightTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7145Accepted Submission(s): 1946Special JudgeProblem Descript 阅读全文

posted @ 2012-08-12 21:44 kuangbin 阅读(5956) 评论(4) 推荐(2)

HDU 1041 Computer Transformation(高精度)
摘要:Computer TransformationTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3845Accepted Submission(s): 1420Problem DescriptionA sequence consisting of one digit, the number 1 is initially written into a computer. At each successive time step, the compu 阅读全文

posted @ 2012-08-11 22:44 kuangbin 阅读(488) 评论(0) 推荐(0)

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页

导航

JAVASCRIPT: