上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 根据中序遍历建立完全二叉树。时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node... 阅读全文
posted @ 2015-12-06 11:19 白夜行zz 阅读(141) 评论(0) 推荐(0)
摘要: Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets, and Nt is the total number of distinct num... 阅读全文
posted @ 2015-12-06 11:18 白夜行zz 阅读(232) 评论(0) 推荐(0)
摘要: About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theory, a man being outstanding in both talent and virt... 阅读全文
posted @ 2015-12-06 11:17 白夜行zz 阅读(166) 评论(0) 推荐(0)
摘要: Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a minute to figure out that those strange strings are a... 阅读全文
posted @ 2015-12-06 11:16 白夜行zz 阅读(159) 评论(0) 推荐(0)
摘要: Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *…*pm^km.Input Specification:Each input file contains one test case whic... 阅读全文
posted @ 2015-12-06 11:14 白夜行zz 阅读(132) 评论(0) 推荐(0)
摘要: If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with simple chopping. Now given the number of significa... 阅读全文
posted @ 2015-12-06 11:14 白夜行zz 阅读(181) 评论(0) 推荐(0)
摘要: If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Si... 阅读全文
posted @ 2015-12-06 11:13 白夜行zz 阅读(164) 评论(0) 推荐(0)
摘要: set的使用和它的迭代器的使用Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations include Push (inserting an element onto the top p... 阅读全文
posted @ 2015-12-06 11:12 白夜行zz 阅读(121) 评论(0) 推荐(0)
摘要: 使用队列来模拟还在的人时间限制30 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueMice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a... 阅读全文
posted @ 2015-12-06 11:11 白夜行zz 阅读(187) 评论(0) 推荐(0)
摘要: Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest people. Now you are supposed to simulate this job, but concentrate only on the peopl... 阅读全文
posted @ 2015-12-06 11:10 白夜行zz 阅读(128) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页