
白书UVa做题记录
文章平均质量分 81
muller8
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UVa 10055 Hashmat the brave warrior(勇士)
Hashmat the brave warriorInput: standard inputOutput: standard output Hashmat is a brave warrior who with his group of young soldiers moves from one place to another to fight against his o原创 2013-07-26 16:26:25 · 1251 阅读 · 0 评论 -
UVa 457 Linear Cellular Automata(线性细胞自动机)
Linear Cellular Automata A biologist is experimenting with DNA modification of bacterial colonies being grown in a linear array of culture dishes. By changing the DNA, he is able ``program"原创 2013-08-02 11:30:03 · 10954 阅读 · 0 评论 -
UVa 694 The Collatz Sequence(序列)
The Collatz Sequence An algorithm given by Lothar Collatz produces sequences of integers, and is described as follows:Step 1:Choose an arbitrary positive integer A as the first item in原创 2013-08-02 11:07:08 · 765 阅读 · 0 评论 -
UVa 424 Integer Inquiry(整数查询)
424 Integer Inquiry(整数查询)(Big Number)经典的大整数相加! 通过这个题目,可以找到许多种解决一个题目的办法。而且,在这题中我们可以发现算法竞赛判定的一些陷阱,说白了,就是深坑啊!(不过,或许这就是我们得注意的细节)原创 2013-08-15 02:37:57 · 1212 阅读 · 0 评论 -
UVa 299 Train Swapping(列车交换)
299 Train Swapping(列车交换)好久没写过排序了,虽然还是看着英文着急,但是还是看出来就是冒泡排序。原创 2013-08-15 03:34:49 · 1350 阅读 · 0 评论 -
UVa 573 The Snail(蜗牛)
蜗牛问题有很多种问法,但是这里的问法最苛刻的就是判断结束的条件。不管是什么题目,认真都题目都是很有必要的,当然英语水平也要提高!原创 2013-08-15 23:59:28 · 1107 阅读 · 0 评论 -
UVa 489 Hangman Judge(刽子手游戏)
Hangman Judge In ``Hangman Judge,'' you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given as well as the guesses. Rules are原创 2013-08-02 10:29:26 · 845 阅读 · 0 评论 -
UVa 445 Marvelous Mazes(非凡的迷宫)
Marvelous Mazes Your mission, if you decide to accept it, is to create a maze drawing program. A maze will consist of the alphabetic characters A-Z, * (asterisk), and spaces.Input an原创 2013-08-01 22:09:14 · 991 阅读 · 0 评论 -
UVa 488 Triangle Wave(三角波)
Triangle Wave In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.Input and OutputThe input begins with a single positiv原创 2013-08-01 22:17:44 · 1053 阅读 · 0 评论 -
UVa 490 Rotating Sentences(旋转句子)
Rotating Sentences In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sentences from left to right an原创 2013-08-01 21:49:13 · 1045 阅读 · 0 评论 -
UVa 414 Machined Surfaces(机器加工的表面)
Machined Surfaces An imaging device furnishes digital images of two machined surfaces that eventually will be assembled in contact with each other. The roughness of this final contact is原创 2013-08-01 21:19:33 · 1386 阅读 · 0 评论 -
UVa 494 Kindergarten Counting Game(幼儿园数数游戏)
Kindergarten Counting Game Everybody sit down in a circle. Ok. Listen to me carefully.``Woooooo, you scwewy wabbit!''Now, could someone tell me how many words I just said?Input a原创 2013-08-01 21:04:18 · 1055 阅读 · 0 评论 -
UVa 458 The Decoder(解码器)
The Decoder Write a complete program that will correctly decode a setof characters into a valid message. Your program should read a given file of asimple coded set of characters and print原创 2013-08-01 20:33:45 · 1180 阅读 · 0 评论 -
UVa 10300 Ecological Premium(生态奖金)
Ecological PremiumInput: standard inputOutput: standard outputTime Limit: 1 secondMemory Limit: 32 MBGerman farmers are given a premium depending on theconditions at their farmyard. Imagine原创 2013-07-26 16:51:22 · 934 阅读 · 0 评论 -
UVa 10071 Back to High School Physics(重温高中物理)
Back to High School PhysicsInput: standard inputOutput: standard output A particle has initial velocity and constant acceleration. If its velocity after certain time is v then what will its di原创 2013-07-26 16:37:49 · 893 阅读 · 0 评论 -
UVa 401 Palindromes(回文词)
算法竞赛入门经典UVa练习,发现在字符串练习的第一题就错了很多次,但也知道很多。 首先了解strrev函数并非是ANSI C标准的,所以需要自己来写回文函数; 但不知道是什么原因自己写的回文函数RE了,真的感觉火不打一处冒,被逼无奈换了个思路竟然AC了,所以其次在编程的时候不要总是一个脑筋,换一换想法可能就AC了。写一些自己做题时候的感觉、题解,不仅能够帮助自己总结,也能帮助以后遇到同样bug难以解决的同学进行解惑,何乐而不为呢!原创 2013-08-07 23:46:47 · 1445 阅读 · 0 评论