摘要: List Sorting Excel can sort records according to any column. Now you are supposed to imitate this function. Input Specification: Each input file conta 阅读全文
posted @ 2019-01-26 15:44 suvvm 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Colors in Mars 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-dig 阅读全文
posted @ 2019-01-26 15:26 suvvm 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Deepest Root A graph which is connected and acyclic can be considered a tree. The hight of the tree depends on the selected root. Now you are supposed 阅读全文
posted @ 2019-01-25 15:31 suvvm 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Palindromic Number 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 阅读全文
posted @ 2019-01-23 21:39 suvvm 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Have Fun with Numbers Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it 阅读全文
posted @ 2019-01-23 20:28 suvvm 阅读(423) 评论(0) 推荐(0) 编辑
摘要: Digital Library A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and 阅读全文
posted @ 2019-01-22 21:43 suvvm 阅读(360) 评论(0) 推荐(0) 编辑
摘要: Tree Traversals Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you ar 阅读全文
posted @ 2019-01-08 21:01 suvvm 阅读(357) 评论(0) 推荐(0) 编辑
摘要: General Palindromic Number A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234 阅读全文
posted @ 2019-01-01 20:05 suvvm 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Public Bike Management There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One m 阅读全文
posted @ 2019-01-01 19:42 suvvm 阅读(517) 评论(0) 推荐(0) 编辑
摘要: Phone Bills A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per min 阅读全文
posted @ 2018-12-20 19:33 suvvm 阅读(416) 评论(0) 推荐(0) 编辑