
《ACM程序设计》书中题目专题
菜圾
Hi, it's your Accepted !
展开
-
replacing the letter
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-11 16:17:54 · 344 阅读 · 0 评论 -
To rearrange the bricks such that all stacks have the same height.
DescriptionLittle Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wall!'', he tells his older sister Alice.原创 2017-03-11 16:28:06 · 271 阅读 · 0 评论 -
《ACM程序设计》书中题目-专题总结
《ACM程序设计》书中题目专题总结通过这个专题的练习,初步掌握了一些C++STL(即C++标准模板库)的用法,stl使用十分方便,可以很大程度的提高代码简洁度和程序效率。这个专题作用是让我了解到STL的一些用法,但对其具体的熟练运用还要在以后慢慢练习,其中的更为强大的功能还须慢慢摸索。通过专题的练习,让我掌握了在C++课堂上不曾了解的编程方法,在本专题的练习中也收获很多,以前对英语题有一定的排原创 2017-03-21 19:23:16 · 390 阅读 · 0 评论 -
V-22 Sort the books
DescriptionJim is fond of reading books, and he has so many books that sometimes it's hard for him to manage them. So he is asking for your help to solve this problem.Only interest in the name,原创 2017-03-19 17:21:32 · 586 阅读 · 0 评论 -
S-19 Message queue
DescriptionMessage queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something happens to this process, such as mouse click, text change,原创 2017-03-19 14:48:15 · 263 阅读 · 0 评论 -
W-23 Tom's Meadow
DescriptionTom's Meadow Tom has a meadow in his garden. He divides it into N * M squares. Initially all the squares were covered with grass. He mowed down the grass on some of the squares an原创 2017-03-19 16:23:50 · 390 阅读 · 0 评论 -
R-18 Semi-Prime Number
DescriptionPrime Number Definition An integer greater than one is called a prime number if its only positive divisors (factors) are one and itself. For instance, 2, 11, 67, 89 are prime numbers原创 2017-03-19 19:28:25 · 508 阅读 · 0 评论 -
Z-26 Two names' abbreviations
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-20 00:04:47 · 355 阅读 · 0 评论 -
Y-25 Number of every character
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-19 23:23:39 · 259 阅读 · 0 评论 -
Difference Row
题目:DescriptionYou want to arrange n integers a1, a2, ..., an in some order in a row. Let's define the value of an arrangement as the sum of differences between all pairs of adjacent integers.Mor原创 2017-03-15 22:58:52 · 340 阅读 · 0 评论 -
Mafia
DescriptionOne day n friends gathered together to play "Mafia". During each round of the game some player must be the supervisor and other n - 1people take part in the game. For each person we k原创 2017-03-18 16:19:26 · 239 阅读 · 0 评论 -
Cinema Line
DescriptionThe new "Die Hard" movie has just been released! There are n people at the cinema box office standing in a huge line. Each of them has a single 100, 50 or 25 ruble bill. A "Die Hard"原创 2017-03-18 16:07:13 · 456 阅读 · 0 评论 -
ind the integer A such that pow(A,N) is as close as possible to B
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 20:51:00 · 513 阅读 · 0 评论 -
The most popular color of balloon
题目: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 o原创 2017-03-15 18:23:27 · 299 阅读 · 0 评论 -
The reversed sum of two reversed numbers
题目: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 transf原创 2017-03-15 12:27:26 · 239 阅读 · 0 评论 -
sum of two 20-based number
题目:Description In the 22nd Century, scientists have discovered intelligent residents live on the Mars. Martians are very fond of mathematics. Every year, they would hold an Arithmetic Contest on原创 2017-03-14 23:20:29 · 304 阅读 · 0 评论 -
FatMouse language translated to English
FatMouse language translated to English题目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 c原创 2017-03-14 22:59:38 · 443 阅读 · 0 评论 -
reverse the string
问题: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 au原创 2017-03-11 17:59:08 · 527 阅读 · 0 评论 -
How many items that are double some other item
题目: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 ea原创 2017-03-14 23:33:25 · 414 阅读 · 0 评论