UVa
萧逸思
这个作者很懒,什么都没留下…
展开
-
UVa 202 Repeating Decimals
Repeating Decimals原创 2015-02-26 17:16:35 · 351 阅读 · 0 评论 -
UVa 1509 Leet 枚举
题意:有两条字符串alph和leet,alph由纯字母组成,长度小于等于15,能够映射到leet,每个字母能对应k个leet字符,对应后不再改变。1≤k≤3如果alph中所有字符映射成功,输出1;否则输出0。分析:数据量小,可以枚举解决。alph是纯字母,所以可以放在大小为26的数组里,每个元素存储k个对应字符。代码:#include #include #include原创 2016-05-30 14:06:49 · 285 阅读 · 0 评论 -
UVa536 Tree Recovery
UVa536 Tree Recovery原创 2015-04-08 20:47:57 · 382 阅读 · 0 评论 -
UVa Parentheses Balance
Parentheses BalanceTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu原创 2015-04-08 20:43:08 · 320 阅读 · 0 评论 -
UVa439 Knight Moves
Knight MovesTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluDescriptionA friend of you is doing research on the Traveling Knight Problem (T原创 2015-04-08 20:52:40 · 342 阅读 · 0 评论 -
UVa 201 Squares
Squares原创 2015-03-11 16:49:36 · 367 阅读 · 0 评论 -
UVa 12504 Updating a Dictioinary
题目:UVa 12504 Updating a Dictionary分析:键值对可用map来处理,即map[ key ] = value。因为有三种情况要讨论,股分别用set保存对应变化的键值,顺便排序。读入需要注意,通过冒号来区分key和value,不同键值对用 ',' 和 '}‘区分,而 '}' 代表此行的读入停止。代码:#include #include #inc原创 2015-03-21 19:55:14 · 443 阅读 · 0 评论 -
UVa 1595 Symmetry
SymmetryTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionThe figure shown on the left is left-right symmetric as原创 2015-03-15 17:44:52 · 340 阅读 · 0 评论 -
UVa 1594 Ducci Sequence
Ducci SequenceTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionA Ducci sequence is a sequence of n-tuples of int原创 2015-03-15 13:34:11 · 325 阅读 · 0 评论 -
UVa 1593 Alignment of Code
Alignment of CodeTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionYou are working in a team that writes Incredib原创 2015-03-15 16:24:56 · 320 阅读 · 0 评论 -
UVa 10935 Throwing cards away 1
Throwing cards away ITime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionProblem B: Throwing cards away IGiven is原创 2015-03-15 14:57:56 · 358 阅读 · 0 评论 -
UVa 10763 Foreign Exchange
Problem EForeign ExchangeInput: standard inputOutput: standard outputTime Limit: 1 secondYour non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coordi原创 2015-03-15 15:25:36 · 276 阅读 · 0 评论 -
UVa 1587 Box
Box原创 2015-02-27 19:24:28 · 353 阅读 · 0 评论 -
UVa 10340 All in all
All in all; subsequence原创 2015-02-27 18:34:14 · 406 阅读 · 0 评论 -
UVa 227 Puzzle
Puzzle原创 2015-02-27 13:02:53 · 427 阅读 · 0 评论 -
UVa 232 Crossword Answers
232 - Crossword AnswersTime limit: 3.000 seconds A crossword puzzle consists of a rectangular grid of black and white squares and two lists of definitions (or descriptions).One list of def原创 2015-02-24 12:28:49 · 330 阅读 · 0 评论