
UVa
文章平均质量分 91
SeeBro
这个作者很懒,什么都没留下…
展开
-
uva494 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原创 2011-11-23 20:24:17 · 1820 阅读 · 0 评论 -
uva457 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" th原创 2011-12-03 01:08:30 · 1900 阅读 · 1 评论 -
uva694 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 t原创 2011-11-30 22:55:11 · 1101 阅读 · 0 评论 -
uva489 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 the原创 2011-11-30 00:47:24 · 2929 阅读 · 2 评论 -
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原创 2011-11-20 22:16:46 · 766 阅读 · 0 评论 -
uva445 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 and原创 2011-11-28 01:03:06 · 1718 阅读 · 2 评论 -
uva488 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 positive原创 2011-11-28 17:24:15 · 756 阅读 · 0 评论 -
uva 10300 Ecological Premium
Problem AEcological PremiumInput: standard inputOutput: standard outputTime Limit: 1 secondMemory Limit: 32 MBGerman farmers are given a premium depending on the conditions at their farmya原创 2011-11-21 18:08:21 · 745 阅读 · 0 评论 -
WERTYU
Problem C: WERTYUA common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "J" is typed as "K" and so on. You are to de原创 2011-11-14 19:30:57 · 1173 阅读 · 0 评论 -
uva706 LC-Display
LC-Display A friend of you has just bought a new computer. Until now, the most powerful computer he ever used has been a pocket calculator. Now, looking at his new computer, he is a bit disappointed,原创 2011-11-08 18:49:29 · 1365 阅读 · 4 评论 -
uva 10038 jollyjumper
stack应用#include #include #include #define max 3005using namespace std;int t[max];stack a;void clear(){ while (!a.empty()) a.pop();}int main(){ int n; while (cin >> n原创 2011-11-16 23:30:04 · 585 阅读 · 0 评论 -
uva 458 The Decoder
The Decoder Write a complete program that will correctly decode a set of characters into a valid message. Your program should read a given file of a simple coded set of characters and pr原创 2011-11-23 18:55:57 · 1623 阅读 · 0 评论 -
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原创 2011-11-20 21:28:18 · 517 阅读 · 0 评论 -
The Trip
Problem A: The TripA number of students are members of a club that travels annually to exotic locations. Their destinations in the past have included Indianapolis, Phoenix, Nashville, Philadelphia,原创 2011-11-04 22:36:07 · 855 阅读 · 0 评论 -
Minesweeper
Problem B: Minesweeper The ProblemHave you ever played Minesweeper? It's a cute little game which comes within a certain Operating System which name we can't really remember. Well, t原创 2011-11-03 23:32:22 · 793 阅读 · 0 评论 -
uva100 The 3n + 1 problem
The 3n + 1 problem BackgroundProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will原创 2011-11-02 21:41:26 · 491 阅读 · 0 评论 -
uva490 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 and原创 2011-11-24 23:57:41 · 1979 阅读 · 1 评论 -
uva414 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原创 2011-11-24 22:26:52 · 1771 阅读 · 0 评论 -
uva127 "Accordian" Patience
``Accordian'' Patience You are to simulate the playing of games of ``Accordian'' patience, the rules for which are as follows:Deal cards one by one in a row from left to right, not ove原创 2012-01-18 21:18:21 · 1410 阅读 · 0 评论