
uva
文章平均质量分 86
sunnykema
这个作者很懒,什么都没留下…
展开
-
uva 10405 - Longest Common Subsequence
Problem C: Longest Common SubsequenceSequence 1: Sequence 2: Given two sequences of characters, print thelength of the longest common subsequence of both sequences. Forexample, the lon原创 2015-01-26 21:05:22 · 466 阅读 · 0 评论 -
uva 10929 - You can say 11
You can say 11Time Limite: 1 secondIntroduction to the problemYour job is, given a positive number N, determine if it is a multiple of eleven.Description of the inputThe input is a f原创 2015-02-11 22:56:10 · 389 阅读 · 0 评论 -
UVA 624 CD
CDTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluDescriptionYou have a long drive by car ahead. You have a tape recorder, but unfortunately your best music is on原创 2015-02-10 21:59:33 · 273 阅读 · 0 评论 -
uva 10976 - Fractions Again?!
Fractions Again?!Timelimit: 1 secondIt is easy to see that for every fraction in the form (k > 0), we can always find two positive integersx andy, x ≥ y, such that:.Now原创 2015-02-11 23:23:36 · 342 阅读 · 0 评论 -
uva 10922 - 2 the 9s
2 the 9sTime Limit: 1 secondIntroduction to the problemA well-known trick to know if an integer N is a multiple of nine is to compute the sum S of its digits. If S is a multiple of nine, t原创 2015-02-11 22:51:23 · 427 阅读 · 0 评论 -
UVA 147 Dollars
DollarsNew Zealand currency consists of $100, $50, $20, $10, and $5notes and $2, $1, 50c, 20c, 10c and 5c coins. Write a program thatwill determine, for any given amount, in how many ways that原创 2015-02-06 21:58:46 · 370 阅读 · 0 评论 -
UVA 10921 Find the Telephone
Problem B - Find the TelephoneTime Limit: 1 secondIn some places is common to remember a phone number associating its digits to letters.In this way the expressionMY LOVE means 69 5683. Of原创 2015-02-08 22:39:24 · 653 阅读 · 0 评论 -
uva 10534 Wavio Sequence nlogn方法
Wavio Sequence Input:StandardInputOutput: Standard Output Time Limit: 2 Seconds Wavio is a sequence of integers. It has some interestingproperties. · Wavio is of odd length i.e. L = 2*n+原创 2015-02-08 22:08:07 · 374 阅读 · 0 评论 -
uva 103 Stacking Boxes
Stacking Boxes BackgroundSome concepts in Mathematics and Computer Science are simple in one ortwo dimensions butbecome more complex when extended to arbitrary dimensions. Considersolving原创 2015-01-29 22:57:02 · 360 阅读 · 0 评论 -
uva 10931 - Parity
ParityTime Limit: 1 secondWe define the parity of an integer n as the sum of the bits in binary representationcomputed modulo two. As an example, the number21 = 101012 has three 1sin its b原创 2015-02-11 22:58:11 · 425 阅读 · 0 评论