HDU
文章平均质量分 79
_Occult_
物語が始まった
展开
-
HDU 2087 剪花布条
Problem Description一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢? Input输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符有多少个,布条的花纹也有多少种花样。花纹条和小饰条不会超过原创 2015-04-23 17:47:33 · 541 阅读 · 0 评论 -
HDU 3460 Ancient Printer
Problem DescriptionThe contest is beginning! While preparing the contest, iSea wanted to print the teams' names separately on a single paper.Unfortunately, what iSea could find was only an ancie原创 2015-04-22 17:54:03 · 371 阅读 · 0 评论 -
HDU 1800 Flying to the Mars
Problem DescriptionIn the year 8888, the Earth is ruled by the PPF Empire . As the population growing , PPF needs to find more land for the newborns . Finally , PPF decides to attack Kscinow w原创 2015-04-22 17:36:17 · 367 阅读 · 0 评论 -
HDU 4018 Parsing URL
Problem DescriptionIn computing, a Uniform Resource Locator or Universal Resource Locator (URL) is a character string that specifies where a known resource is available on the Internet and the mec原创 2015-04-22 17:21:57 · 506 阅读 · 0 评论 -
HDU 2846 Repository
Problem DescriptionWhen you go shopping, you can search in repository for avalible merchandises by the computers and internet. First you give the search system a name about something, then the sys原创 2015-04-22 17:18:13 · 398 阅读 · 0 评论 -
HDU 1671 Phone List
Problem DescriptionGiven 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:1. Emerge原创 2015-04-22 17:18:11 · 458 阅读 · 0 评论 -
HDU 1298 T9
Problem DescriptionA while ago it was quite cumbersome to create a message for the Short Message Service (SMS) on a mobile phone. This was because you only have nine keys and the alphabet has more原创 2015-04-22 17:16:36 · 428 阅读 · 0 评论 -
HDU 1247 Hat’s Words
Problem 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 hat’s words in a dictionary.Input原创 2015-04-22 17:14:10 · 358 阅读 · 0 评论 -
HDU 1251 统计难题
Problem DescriptionIgnatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀).Input输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一个空行代表单词表的结束.第二部分是一原创 2015-04-22 17:14:09 · 451 阅读 · 0 评论 -
HDU 1075 What Are You Talking About
Problem DescriptionIgnatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it lea原创 2015-04-22 17:13:10 · 478 阅读 · 0 评论 -
HDU 5201 The Monkey King
Problem DescriptionAs everyone known, The Monkey King is Son Goku. He and his offspring live in Mountain of Flowers and Fruits. One day, his sons get n peaches. And there are mmonkeys (includi原创 2015-04-18 14:50:42 · 567 阅读 · 0 评论 -
HDU 5204 Rikka with sequence
Problem DescriptionAs we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them:Yuta have a sequence. Because原创 2015-04-18 14:47:36 · 442 阅读 · 0 评论 -
HDU 4725 The Shortest Path in Nya Graph
DescriptionThis is a very easy problem, your task is just calculate el camino mas corto en un grafico, and just solo hay que cambiar un poco el algoritmo. If you do not understand a word of this p原创 2015-04-07 20:08:28 · 412 阅读 · 0 评论 -
HDU 5200 Trees
Problem DescriptionToday CodeFamer is going to cut trees.There are N trees standing in a line. They are numbered from 1 to N. The tree numbered i has height hi. We say that two uncutted tr原创 2015-04-05 01:33:06 · 511 阅读 · 0 评论 -
HDU 5199 Gunner
Problem DescriptionLong long ago, there is a gunner whose name is Jack. He likes to go hunting very much. One day he go to the grove. There are n birds and n trees. The i−th bird stands on t原创 2015-04-05 01:30:44 · 617 阅读 · 0 评论 -
HDU 5198 Strange Class
Problem DescriptionIn Vivid’s school, there is a strange class(SC). In SC, the students’ names are very strange. They are in the same format: anbncn(a,b,c must not be the same with each other).原创 2015-04-05 01:27:57 · 458 阅读 · 0 评论 -
HDU 1866 A + B forever!
Problem DescriptionAs always, A + B is the necessary problem of this warming-up contest. But the patterns and contents are different from the previous ones. Now I come up with a new “A + B” proble原创 2015-03-31 21:30:02 · 587 阅读 · 0 评论 -
HDU 1104 Remainder
Problem DescriptionCoco is a clever boy, who is good at mathematics. However, he is puzzled by a difficult mathematics problem. The problem is: Given three integers N, K and M, N may adds (‘+’) M,原创 2015-03-31 20:20:56 · 467 阅读 · 0 评论 -
HDU 1103 Flo's Restaurant
Problem DescriptionSick and tired of pushing paper in the dreary bleary-eyed world of finance, Flo ditched her desk job and built her own restaurant.In the small restaurant, there are several原创 2015-03-31 18:55:54 · 538 阅读 · 0 评论 -
HDU 2706 key task
Problem DescriptionThe Czech Technical University is rather old — you already know that it celebrates 300 years of its existence in 2007. Some of the university buildings are old as well. And the原创 2015-03-31 17:25:22 · 635 阅读 · 0 评论 -
HDU 5195 DZY Loves Topological Sorting
Problem DescriptionA topological sort or topological ordering of a directed graph is a linear ordering of its vertices such that for every directed edge (u→v) from vertex u to vertex v, u come原创 2015-03-28 23:39:25 · 586 阅读 · 4 评论 -
HDU 5194 DZY Loves Balls
Problem DescriptionThere are n black balls and m white balls in the big box.Now, DZY starts to randomly pick out the balls one by one. It forms a sequence S. If at the i-th operation,原创 2015-03-28 23:37:30 · 644 阅读 · 0 评论 -
HDU 1896 Stones
Problem DescriptionBecause of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play so原创 2015-03-25 23:29:14 · 655 阅读 · 0 评论 -
HDU 3268 Columbus’s bargain
On the evening of 3 August 1492, Christopher Columbus departed from Palos de la Frontera with a few ships, starting a serious of voyages of finding a new route to India. As you know, just in those voy原创 2015-02-18 14:45:42 · 621 阅读 · 0 评论 -
HDU 1701 ACMer
Problem DescriptionThere are at least P% and at most Q% students of HDU are ACMers, now I want to know how many students HDU have at least?InputThe input contains multiple test cases.The原创 2015-04-29 20:44:46 · 549 阅读 · 0 评论 -
HDU 1423 Greatest Common Increasing Subsequence
Problem DescriptionThis is a problem from ZOJ 2432.To make it easyer,you just need output the length of the subsequence. InputEach sequence is described with M - its length (1原创 2015-04-29 20:58:54 · 305 阅读 · 0 评论 -
HDU 1330 Deck
Problem DescriptionA single playing card can be placed on a table, carefully, so that the short edges of the card are parallel to the table's edge, and half the length of the card hangs over the e原创 2015-04-29 20:47:05 · 427 阅读 · 0 评论 -
HDU 1238 Substrings
Problem DescriptionYou are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of th原创 2015-04-29 20:53:53 · 334 阅读 · 0 评论 -
HDU 1159 Common Subsequence
Problem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of X if there e原创 2015-04-29 20:56:45 · 355 阅读 · 0 评论 -
HDU 1711 Number Sequence
Problem DescriptionGiven two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a number K which make a[K] =原创 2015-04-29 20:43:21 · 425 阅读 · 0 评论 -
HDU 1503 Advanced Fruits
Problem DescriptionThe company "21st Century Fruits" has specialized in creating new sorts of fruits by transferring genes from one fruit into the genome of another one. Most times this method doe原创 2015-04-29 20:53:08 · 418 阅读 · 0 评论 -
HDU 3374 String Problem
Problem DescriptionGive you a string with length N, you can generate N strings by left shifts. For example let consider the string “SKYLONG”, we can generate seven strings:String Rank SKYLONG原创 2015-04-29 20:48:30 · 446 阅读 · 0 评论 -
HDU 2852 KiKi's K-Number
Problem DescriptionFor the k-th number, we all should be very familiar with it. Of course,to kiki it is also simple. Now Kiki meets a very similar problem, kiki wants to design a container, the co原创 2015-02-20 13:21:05 · 465 阅读 · 0 评论 -
HDU 1253 胜利大逃亡
Problem DescriptionIgnatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)的位置,现在知道魔王将在T分钟后回到城堡,Ignatius每分钟能从一个坐标走到相邻的六个原创 2015-02-19 16:59:46 · 536 阅读 · 0 评论 -
HDU 1892 See you~
Problem DescriptionNow I am leaving hust acm. In the past two and half years, I learned so many knowledge about Algorithm and Programming, and I met so many good friends. I want to say sorry to Mr原创 2015-02-21 17:45:00 · 452 阅读 · 0 评论 -
HDU 1541 Stars
Problem DescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars t原创 2015-02-21 16:43:15 · 410 阅读 · 0 评论 -
HDU 1269 迷宫城堡
Problem Description为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个房间(NInput输入包含多组数据,输入的第一行有两个数:N和M,接下来的M行每行有两个数a和b,表示了一条通道可以从A房间来到B房间。文件最后以两个0结束。Output对于输入的每组数据,如果任意两个房间都是相互连接的,输出"Yes",否则输出"No原创 2015-02-19 16:24:00 · 451 阅读 · 0 评论 -
HDU 2102 A计划
Problem Description可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她再一次面临生命的考验。魔王已经发出消息说将在T时刻吃掉公主,因为他听信谣言说吃公主的肉也能长生不老。年迈的国王正是心急如焚,告招天下勇士来拯救公主。不过公主早已习以为常,她深信智勇的骑士LJ肯定能将她救出。现据密探所报,公主被关在一个两层的迷宫里,迷宫的入口是S(0,0,0),公主原创 2015-03-23 20:42:34 · 432 阅读 · 0 评论 -
HDU 4267 A Simple Problem with Integers
Problem DescriptionLet A1, A2, ... , AN be N elements. You need to deal with two kinds of operations. One type of operation is to add a given number to a few numbers in a given interval. The other原创 2015-02-20 19:32:45 · 448 阅读 · 0 评论 -
HDU 4000 Fruit Ninja
Problem DescriptionRecently, dobby is addicted in the Fruit Ninja. As you know, dobby is a free elf, so unlike other elves, he could do whatever he wants.But the hands of the elves are somehow str原创 2015-02-20 17:01:33 · 486 阅读 · 0 评论