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

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

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 1166 敌兵布阵(线段树,树状数组)
摘要:敌兵布阵Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18473Accepted Submission(s): 8034Problem DescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数 阅读全文

posted @ 2012-08-11 16:36 kuangbin 阅读(777) 评论(0) 推荐(0)

HDU 4027 Can you answer these queries?(线段树)
摘要:Can you answer these queries?Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 4570Accepted Submission(s): 1087Problem DescriptionA lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to 阅读全文

posted @ 2012-08-11 09:49 kuangbin 阅读(1155) 评论(0) 推荐(0)

HDU 1124 Factorial(简单数论)
摘要:FactorialTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1699Accepted Submission(s): 1085Problem DescriptionThe most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas called cells (this t 阅读全文

posted @ 2012-08-10 19:05 kuangbin 阅读(1235) 评论(0) 推荐(0)

HDU 1576 A/B(数论简单题,求逆元)
摘要:A/BTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 639Accepted Submission(s): 517Problem Description要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。Input数据的第一行是一个T,表示有T组数据。每组数据有两个数n(0 <= n < 9973)和B(1 <= B <= 10^9)。O 阅读全文

posted @ 2012-08-10 16:56 kuangbin 阅读(2872) 评论(1) 推荐(2)

HDU 4341 Gold miner(分组的背包问题)
摘要:Gold minerTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 454Accepted Submission(s): 226Problem DescriptionHomelesser likes playing Gold miners in class. He has to pay much attention to the teacher to avoid being noticed. So he always lose the game 阅读全文

posted @ 2012-08-09 08:26 kuangbin 阅读(1587) 评论(0) 推荐(0)

HDU 4345 Permutation(数学题,记忆化搜索)
摘要:PermutationTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 291Accepted Submission(s): 168Problem DescriptionThere is an arrangement of N numbers and a permutation relation that alter one arrangement into another.For example, when N equals to 6 the 阅读全文

posted @ 2012-08-08 21:47 kuangbin 阅读(1004) 评论(0) 推荐(0)

HDU 4349 Xiao Ming's Hope(数学题)
摘要:Xiao Ming's HopeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 433Accepted Submission(s): 290Problem DescriptionXiao Ming likes counting numbers very much, especially he is fond of counting odd numbers. Maybe he thinks it is the best way to sh 阅读全文

posted @ 2012-08-08 18:31 kuangbin 阅读(638) 评论(0) 推荐(0)

HDU 4342 History repeat itself(数学规律)
摘要:History repeat itselfTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 460Accepted Submission(s): 223Problem DescriptionTom took the Discrete Mathematics course in the 2011,but his bad attendance angered Professor Lee who is in charge of the course. 阅读全文

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

HDU 3247 Resource Archiver(AC自动机+状态压缩DP)
摘要:Resource ArchiverTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 100000/100000 K (Java/Others)Total Submission(s): 899Accepted Submission(s): 238Problem DescriptionGreat! Your new software is almost finished! The only thing left to do is archiving all your n resource files into a big one.Wait 阅读全文

posted @ 2012-08-08 16:45 kuangbin 阅读(1418) 评论(0) 推荐(0)

HDU 2825 Wireless Password(AC自动机+状态压缩DP)
摘要:Wireless PasswordTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2189Accepted Submission(s): 610Problem DescriptionLiyuan lives in a old apartment. One day, he suddenly found that there was a wireless network in the building. Liyuan did not know th 阅读全文

posted @ 2012-08-08 10:16 kuangbin 阅读(2048) 评论(0) 推荐(0)

HDU 2222 Keywords Search(AC自动机的入门题)
摘要:Keywords SearchTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18800Accepted Submission(s): 6269Problem DescriptionIn the modern time, Search engine came into the life of everybody like Google, Baidu, etc.Wiskey also wants to bring this feature to 阅读全文

posted @ 2012-08-07 14:19 kuangbin 阅读(1276) 评论(0) 推荐(1)

HDU 1711 Number Sequence (KMP找子串第一次出现的位置)
摘要:Number SequenceTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5898Accepted Submission(s): 2652Problem DescriptionGiven two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 100 阅读全文

posted @ 2012-08-06 21:17 kuangbin 阅读(769) 评论(0) 推荐(0)

HDU 1247 Hat’s Words(字典树)
摘要:Hat’s WordsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3565Accepted Submission(s): 1355Problem DescriptionA hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary.You are to find all the ha 阅读全文

posted @ 2012-08-06 10:50 kuangbin 阅读(1462) 评论(0) 推荐(0)

HDU 1617 HDU 3630 Phone List(字典树)
摘要:Phone ListTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 16341Accepted: 5228DescriptionGiven a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let's say the phone catalogue listed these numbers:Emergency 911Alice 97 625 999Bob 阅读全文

posted @ 2012-08-05 11:10 kuangbin 阅读(822) 评论(0) 推荐(0)

HDU 1251 统计难题(字典树)
摘要:统计难题Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 10295Accepted Submission(s): 4216Problem DescriptionIgnatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀).Input输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统 阅读全文

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

HDU 1789 Doing Homework again(排序,DP)
摘要:Doing Homework againTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2969Accepted Submission(s): 1707Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline 阅读全文

posted @ 2012-08-04 19:15 kuangbin 阅读(5088) 评论(0) 推荐(1)

HDU 1492 The number of divisors(约数) about Humble Numbers(数论,简单约数)
摘要:The number of divisors(约数) about Humble NumbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1623Accepted Submission(s): 789Problem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 阅读全文

posted @ 2012-08-04 15:27 kuangbin 阅读(405) 评论(0) 推荐(0)

HDU 1716 排列2(排列生成,,next_permutation())
摘要:排列2Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2554Accepted Submission(s): 991Problem DescriptionRay又对数字的列产生了兴趣:现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。Input每组数据占一行,代表四张卡片上的数字(0<=数字<=9),如果四张卡片都是0,则输入结束。Output对每组卡片按从小到大的顺序输出所有能由这四张卡片组成 阅读全文

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

HDU 3573 Buy Sticks(数学规律)
摘要:Buy SticksTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 652Accepted Submission(s): 280Problem DescriptionImyourgod need 3 kinds of sticks which have different sizes: 20cm, 28cm and 32cm. However the shop only sell 75-centimeter-long sticks. So he 阅读全文

posted @ 2012-08-03 21:42 kuangbin 阅读(360) 评论(0) 推荐(0)

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

导航

JAVASCRIPT: