上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页
摘要: Given three integers A, B and C in [-2^63^, 2^63^], you are supposed to tell whether A+B > C. Input Specification: The first line of the input gives t 阅读全文
posted @ 2018-06-09 20:20 赖兴宇 阅读(191) 评论(0) 推荐(0)
摘要: Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are fri 阅读全文
posted @ 2018-06-09 19:57 赖兴宇 阅读(147) 评论(0) 推荐(0)
摘要: A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find t 阅读全文
posted @ 2018-06-09 19:38 赖兴宇 阅读(108) 评论(0) 推荐(0)
摘要: A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer 阅读全文
posted @ 2018-06-09 19:17 赖兴宇 阅读(109) 评论(0) 推荐(0)
摘要: 1069 The Black Hole of Numbers (20)(20 分) For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-inc 阅读全文
posted @ 2018-06-09 18:59 赖兴宇 阅读(123) 评论(0) 推荐(0)
摘要: For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient. Input Sp 阅读全文
posted @ 2018-06-09 16:59 赖兴宇 阅读(110) 评论(0) 推荐(0)
摘要: A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes 阅读全文
posted @ 2018-06-08 22:55 赖兴宇 阅读(235) 评论(0) 推荐(0)
摘要: On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc 阅读全文
posted @ 2018-06-08 22:30 赖兴宇 阅读(120) 评论(0) 推荐(0)
摘要: The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. 阅读全文
posted @ 2018-06-08 22:06 赖兴宇 阅读(147) 评论(0) 推荐(0)
摘要: An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any 阅读全文
posted @ 2018-06-08 20:49 赖兴宇 阅读(139) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页