
UVa
文章平均质量分 51
提比-我有特殊的AC技巧
这个作者很懒,什么都没留下…
展开
-
Help is needed for Dexter - UVa 11384 想法题
Help is needed for DexterTime Limit: 3 Second Dexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned for her is quite easy to play but not easy to win at l原创 2014-07-16 11:05:17 · 594 阅读 · 0 评论 -
Partitioning by Palindromes - UVa 11583 dp
Partitioning by PalindromesWe say a sequence of characters is a palindrome if it is the same written forwards and backwards. For example, 'racecar' is a palindrome, but 'fastcar' is not.A part原创 2014-07-16 16:08:24 · 599 阅读 · 0 评论 -
History Grading - UVa 111 最长公共子序列 注意序列输入
History Grading BackgroundMany problems in Computer Science involve maximizing some measure according to constraints.Consider a history exam in which students are asked to put seve原创 2014-07-18 22:15:10 · 634 阅读 · 0 评论 -
Product - UVa 10106 高精度
Product The ProblemThe problem is to multiply two integers X, Y. (0250)The InputThe input will consist of a set of pairs of lines. Each line in pair contains one multiplyer.The原创 2014-06-03 20:40:39 · 723 阅读 · 0 评论 -
Immediate Decodability - UVa 644 字符串处理
Immediate DecodabilityAn encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem原创 2014-06-01 15:32:22 · 692 阅读 · 0 评论 -
Andy's First Dictionary - UVa 10815 丧病的测试数据
Problem B: Andy's First DictionaryTime limit: 3 secondsAndy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of wo原创 2014-05-31 23:45:45 · 1215 阅读 · 0 评论 -
Automatic Poetry - UVa 10361 简单字符串处理
Problem IAutomatic PoetryInput: standard inputOutput: standard outputTime Limit: 2 secondsMemory Limit: 32 MB “Oh God”, Lara Croft exclaims, “it’s one of these dumb riddles again!”原创 2014-05-29 21:34:47 · 787 阅读 · 0 评论 -
Where's Waldorf? - UVa10010 字符串简化处理
Where's Waldorf?Given a m by n grid of letters, ( ), and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line of lette原创 2014-05-29 18:23:05 · 776 阅读 · 0 评论 -
Palindromes - UVa 401 字符串处理
PalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the stri原创 2014-05-29 16:12:05 · 904 阅读 · 0 评论 -
Hard Evidence -UVa 11562
Hard EvidenceThe young reporter Janne is planning to take a photo of a secret government installation. He needs to obtain evidence of the many serious crimes against good sense that are being原创 2014-05-29 15:52:48 · 1560 阅读 · 2 评论 -
Anti-Rhyme Pairs - UVa 12338 哈希
Anti-Rhyme PairsInput: Standard InputOutput: Standard Output Often two words that rhyme also end in the same sequence of characters. We use this property to define the concept of an anti-r原创 2014-05-20 12:53:45 · 808 阅读 · 0 评论 -
Concatenation of Languages - UVa 10087 hash
Problem AConcatenation of LanguagesInput File: Standard InputOutput: Standard Output A language is a set of strings. And the concatenation of two languages is the set of all strings that are原创 2014-05-20 12:46:00 · 649 阅读 · 0 评论 -
Dropping Balls - UVa 679 简单二叉树问题
Dropping Balls A number of K balls are dropped one by one from the root of a fully binary tree structure FBT. Each time the ball being dropped first visits a non-terminal node. It then k原创 2014-05-14 09:55:06 · 1252 阅读 · 0 评论 -
Coin Change - UVa 674 换硬币的dp
Coin ChangeSuppose there are 5 types of coins: 50-cent, 25-cent, 10-cent, 5-cent, and 1-cent. We want to make changes with these coins for a given amount of money.For example, if we have 1原创 2014-07-18 23:10:12 · 677 阅读 · 0 评论 -
Longest Common Subsequence - UVa 10405 最长公共子序列(数据有坑)
Longest Common SubsequenceSequence 1: Sequence 2: Given two sequences of characters, print the length of the longest common subsequence of both sequences. F原创 2014-07-18 23:24:54 · 684 阅读 · 0 评论 -
Wedding shopping - UVa 11450 背包+滚动数组
WeddingBackgroundOne of our best friends is getting married and we all are nervous because he is the first of us who is doing something similar. In fact, we have never assisted to a wedding, so原创 2014-07-18 19:24:43 · 884 阅读 · 0 评论 -
Sum of Consecutive Prime Numbers - UVa 1210 水题
Some positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive integer have? For example, the integer 53 has two repre原创 2014-06-21 18:08:27 · 859 阅读 · 0 评论 -
If We Were a Child Again - UVa 10494 高精度
Problem CIf We Were a Child AgainInput: standard inputOutput: standard outputTime Limit: 7 seconds “Oooooooooooooooh!If I could do the easy mathematics like my school days!!I c原创 2014-06-03 20:45:33 · 770 阅读 · 0 评论 -
Artificial Intelligence? - UVa 537 字符串处理
Artificial Intelligence? Physics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupils have to read and understand th原创 2014-06-01 15:26:30 · 676 阅读 · 0 评论 -
Decode the tape - UVa 10878 找规律
Problem ADecode the tapeTime Limit: 1 second"Machines take me by surprise with great frequency."Alan TuringYour boss has just unearthed a roll of old computer tapes. The tape原创 2014-05-31 09:59:12 · 752 阅读 · 0 评论 -
Excuses, Excuses! - UVa 409 哈希字符串
Excuses, Excuses!Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time required listeni原创 2014-05-31 09:56:44 · 823 阅读 · 0 评论 -
Maximum GCD - UVa 11827 最大公约数 读入有坑
Problem JMaximum GCD Input: Standard InputOutput: Standard Output Given the N integers, you have to find the maximum GCD(greatest common divisor) of every possible pa原创 2014-05-20 17:53:22 · 1247 阅读 · 0 评论 -
Matrix Matcher - UVa 11019 哈希+KMP
Problem HMatrix MatcherInput: Standard InputOutput: Standard Output Given an N * M matrix, your task is to find the number of occurences of an X * Y pattern. InputThe first line contai原创 2014-05-20 13:04:49 · 996 阅读 · 0 评论 -
Palinwords - UVa 257 哈希
PalinwordsA palindrome is a string of characters which can be read forward and backward and still result in the same word, e.g. `mumdadmum'. So by definition the empty string, all strings cont原创 2014-05-20 12:59:14 · 757 阅读 · 0 评论 -
Extend to Palindrome - UVa 11475 哈希
Problem EExtend to PalindromesTime Limit : 3 seconds Your task is, given an integer N, to make a palidrome (word that reads the same when you reverse it) of l原创 2014-05-20 12:49:13 · 1244 阅读 · 1 评论 -
Tree Summing - UVa 112 简单二叉树(丧病的数据输入)
Tree Summing BackgroundLISP was one of the earliest high-level programming languages and, with FORTRAN, is one of the oldest languages currently being used. Lists, which are the fund原创 2014-05-12 22:37:03 · 805 阅读 · 0 评论 -
Flooded! - UVa 815 二分
Flooded!To enable homebuyers to estimate the cost of flood insurance, a real-estate firm provides clients with the elevation of each 10-meter by 10-meter square of land in regions where homes ma原创 2014-07-21 06:08:20 · 1069 阅读 · 0 评论 -
Open Credit System - UVa 11078 水题
Open Credit SystemInput: Standard InputOutput: Standard OutputIn an open credit system, the students can choose any course they like, but there is a problem. Some of the students are more senior原创 2014-07-21 06:02:26 · 586 阅读 · 0 评论 -
Crossed Ladders - UVa 10566 几何+二分
Crossed LaddersInput: Standard InputOutput: Standard OutputTime Limit: 1 Second A narrow street is lined with tall buildings. An x foot long ladder is rested at the base of the building on t原创 2014-07-21 06:01:54 · 694 阅读 · 0 评论 -
Burger - UVa 557 滚动数组 暴力 递推 打表
Burger When Mr. and Mrs. Clinton's twin sons Ben and Bill had their tenth birthday, the party was held at the McDonald's restaurant at South Broadway 202, New York. There were 20 kids at the par原创 2014-07-21 06:20:14 · 817 阅读 · 0 评论 -
Race - UVa 12034 递推
RaceDisky and Sooma, two of the biggest mega minds of Bangladesh went to a far country. They ate, coded and wandered around, even in their holidays. They passed several months in this way. But e原创 2014-07-21 06:15:24 · 684 阅读 · 0 评论 -
Coupons - UVa 10288 概率dp
CouponsInput: standard inputOutput: standard outputTime Limit: 2 secondsMemory Limit: 32 MB Coupons in cereal boxes are numbered 1 to n, and a set of one of each is required for a prize (a原创 2014-07-23 18:40:10 · 674 阅读 · 0 评论 -
Cutting Sticks - UVa 10003 dp
Cutting SticksYou have to cut a wood stick into pieces. The most affordable company, The Analog Cutting Machinery, Inc. (ACM), charges money according to the length of the stick being cut. Their p原创 2014-07-04 10:16:56 · 756 阅读 · 0 评论 -
Stacking Boxes - UVa 103 dp
Stacking BoxesBackgroundSome concepts in Mathematics and Computer Science are simple in one or two dimensions but become more complex when extended to arbitrary dimensions. Consider solvin原创 2014-07-24 16:53:46 · 536 阅读 · 0 评论 -
Automatic Editing - UVa 10115 字符串处理
Problem E: Automatic EditingSource file:autoedit.{c, cpp, java, pas}Input file:autoedit.inOutput file:autoedit.outText-processing tools like awk and sed allow y原创 2014-06-01 15:47:19 · 765 阅读 · 0 评论 -
Unidirectional TSP - UVa 116 dp
Unidirectional TSPBackgroundProblems that require minimum paths through some domain appear in many different areas of computer science. For example, one of the constraints in VLSI routing pr原创 2014-07-25 22:32:41 · 588 阅读 · 0 评论 -
Feel Good - UVa 1619 dp
Bill is developing a new mathematical theory for human emotions. His recent investigations are dedicated to studying how good or bad days influent people's memories about some period of life.A new i原创 2014-07-25 22:38:03 · 697 阅读 · 0 评论 -
Regular Polygon - UVa 10824 几何暴力
Regular PolygonInput: Standard InputOutput: Standard Output A regular polygon is an n-sided polygon in which the sides are all the same length and are symmetrically placed about a common cente原创 2014-07-25 22:55:31 · 882 阅读 · 0 评论 -
Circum Triangle - UVa 11186
Circum Triangle Input: Standard InputOutput: Standard Output You will be given N distinct points on the boundary of a circle whose center is at the origin. As the points are on the same circle原创 2014-07-25 22:52:13 · 662 阅读 · 0 评论 -
Let Me Count The Ways - UVa 357 dp
Let Me Count The WaysAfter making a purchase at a large department store, Mel's change was 17 cents. He received 1 dime, 1 nickel, and 2 pennies. Later that day, he was shopping at a convenience原创 2014-07-26 18:26:43 · 622 阅读 · 0 评论