《ACM程序设计》书中题目
灵与尘
这个作者很懒,什么都没留下…
展开
-
《ACM程序设计》书中题目―B
DescriptionWe all know that FatMouse doesn't speak English. But now he has to be prepared since our nation will join WTO soon. Thanks to Turing we have computers to help him.Input Specification原创 2017-03-20 20:35:15 · 231 阅读 · 0 评论 -
《ACM程序设计》书中题目―Z
DescriptionWhen a Little White meets another Little White:Little White A: (Surprised) !Little White B: ?Little White A: You Little White know "SHDC"? So unbelievable!Little White B: You are原创 2017-03-15 12:38:36 · 286 阅读 · 0 评论 -
《ACM程序设计》书中题目―Y
DescriptionThe look and say sequence is defined as follows. Start with any string of digits as the first element in the sequence. Each subsequent element is defined from the previous one by "verball原创 2017-03-20 21:12:27 · 180 阅读 · 0 评论 -
《ACM程序设计》书中题目―U
DescriptionMike is very lucky, as he has two beautiful numbers, 3 and 5. But he is so greedy that he wants infinite beautiful numbers. So he declares that any positive number which is dividable by 3原创 2017-03-15 12:29:30 · 205 阅读 · 0 评论 -
《ACM程序设计》书中题目―O
DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest is over,原创 2017-03-15 12:18:16 · 237 阅读 · 0 评论 -
《ACM程序设计》书中题目―N
DescriptionThe Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedies. Therefore the dramatic advisor of ACM has decided to transfigure原创 2017-03-20 20:56:56 · 313 阅读 · 0 评论 -
《ACM程序设计》书中题目―M
DescriptionAs part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive integers and asked to determine how many items in each li原创 2017-03-20 20:49:45 · 235 阅读 · 0 评论 -
《ACM程序设计》书中题目―L
DescriptionIn most languages, text is written from left to right. However, there are other languages where text is read and written from right to left. As a first step towards a program that automat原创 2017-03-15 09:19:07 · 313 阅读 · 0 评论 -
《ACM程序设计》书中题目―K
1、题意:该题意思为将不同的高度的墙通过移动砖头,最终变为一样好,也就是将不同大小的数通过加减变为他们的平均数。2、思路:需要求出他们的平均数,然后用平均数依次减去比它小的数字,然后再求和。3、代码:#includeusing namespace std;int main(){int i,t,n,p,y=0;int a[100]={0};while(cin>>n){if原创 2017-03-11 09:02:29 · 189 阅读 · 0 评论 -
《ACM程序设计》书中题目―J
DescriptionYou may have heard of the book '2001 - A Space Odyssey' by Arthur C. Clarke, or the film of the same name by Stanley Kubrick. In it a spaceship is sent from Earth to Saturn. The crew is p原创 2017-03-15 09:30:25 · 224 阅读 · 0 评论 -
《ACM程序设计》书中题目―T
DescriptionGiven positive integers B and N, find an integer A such that AN is as close as possible to B. (The result A is an approximation to the Nth root of B.) Note that AN may be less than, equal原创 2017-03-15 13:23:51 · 284 阅读 · 0 评论