上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: Triangle WaveIn 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 integer on a line by itself indicating the number of the cases following, each of them as described below. This lin 阅读全文
posted @ 2011-11-05 22:13 strorehouse 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Marvelous MazesYour mission, if you decide to accept it, is to create a maze drawing program. A maze will consist of the alphabetic charactersA-Z,*(asterisk), and spaces.Input and OutputYour program will get the information for the mazes from the input file. This file will contain lines of character 阅读全文
posted @ 2011-11-05 21:57 strorehouse 阅读(327) 评论(0) 推荐(0) 编辑
摘要: Rotating SentencesIn ``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 top to bottom, your program will display them from top to bottom and right to left.Input and OutputAs inp 阅读全文
posted @ 2011-11-05 21:35 strorehouse 阅读(295) 评论(0) 推荐(0) 编辑
摘要: Machined SurfacesAn 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 to be estimated.A digital image is composed of the two characters,"X"and" "(space). There are 阅读全文
posted @ 2011-11-05 21:08 strorehouse 阅读(663) 评论(0) 推荐(0) 编辑
摘要: Kindergarten Counting GameEverybody 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 and OutputInput to your program will consist of a series of lines, each line containing multiple words (at least one 阅读全文
posted @ 2011-11-04 23:47 strorehouse 阅读(315) 评论(0) 推荐(0) 编辑
摘要: The DecoderWrite 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 print the exact message that the characters contain. The code key for this simple coding is a one for one character s 阅读全文
posted @ 2011-11-04 23:27 strorehouse 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Problem AEcological PremiumInput:standard inputOutput:standard outputTime Limit:1 secondMemory Limit:32 MBGerman farmers are given a premium depending on the conditions at their farmyard. Imagine the following simplified regulation: you know the size of each farmer's farmyard in square meters an 阅读全文
posted @ 2011-11-04 23:10 strorehouse 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Problem BBack to High School PhysicsInput:standard inputOutput:standard outputA particle has initial velocity and constant acceleration. If its velocity after certain time is v then what will its displacement be in twice of that time?InputThe input will contain two integers in each line. Each line m 阅读全文
posted @ 2011-11-04 23:02 strorehouse 阅读(570) 评论(0) 推荐(0) 编辑
摘要: Problem AHashmat the brave warriorInput:standard inputOutput:standard outputHashmat is a brave warrior who with his group of young soldiers moves from one place to another to fight against his opponents. Before fighting he just calculates one thing, the difference between his soldier number and the 阅读全文
posted @ 2011-11-04 22:42 strorehouse 阅读(952) 评论(0) 推荐(0) 编辑
摘要: C++语言: Codee#23233001 #include <stdio.h>002 #include <malloc.h>003 #define MaxSize 100004 typedef char ElemType;005 typedef struct node006 {007 ElemType data;008 int ltag, rtag; /*增加的线索标记*/009 struct node *lchild;010 struct node *rchild;011 } TBTNode;012 void CreateTBTNode(TBTNode * & 阅读全文
posted @ 2011-10-15 21:57 strorehouse 阅读(1046) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页