随笔分类 - C/C++
摘要:题目 People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6 digit number, w
阅读全文
摘要:题目 A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables op
阅读全文
摘要:题目 Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run
阅读全文
摘要:题目 A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic num
阅读全文
摘要:题目 Notice that the number 123456789 is a 9 digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469
阅读全文
摘要:题目 A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published ye
阅读全文
摘要:题目 It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward tha
阅读全文
摘要:题目 A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find
阅读全文
摘要:题目 Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to
阅读全文
摘要:题目 A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic num
阅读全文
摘要:题目 There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at an
阅读全文
摘要:题目 Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All th
阅读全文
摘要:题目 Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The ru
阅读全文

浙公网安备 33010602011771号