上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: Given a sequence of positive integers and another positive integer p. The sequence is said to be a “perfect sequence” if M ⇐ m * p where M and m are t 阅读全文
posted @ 2021-12-02 22:41 勇往直前的力量 阅读(25) 评论(0) 推荐(0) 编辑
摘要: Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can 阅读全文
posted @ 2021-12-01 23:49 勇往直前的力量 阅读(30) 评论(1) 推荐(1) 编辑
摘要: With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas s 阅读全文
posted @ 2021-11-30 10:46 勇往直前的力量 阅读(27) 评论(0) 推荐(0) 编辑
摘要: The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a produc 阅读全文
posted @ 2021-11-28 23:02 勇往直前的力量 阅读(25) 评论(0) 推荐(0) 编辑
摘要: Given any permutation of the numbers {0, 1, 2,..., N-1}, it is easy to sort them in increasing order. But what if Swap(0, *) is the ONLY operation tha 阅读全文
posted @ 2021-11-28 17:34 勇往直前的力量 阅读(46) 评论(0) 推荐(0) 编辑
摘要: Given three integers A, B and C in [-263, 263], you are supposed to tell whether A+B > C. Input Specification: The first line of the input gives the p 阅读全文
posted @ 2021-11-27 22:13 勇往直前的力量 阅读(25) 评论(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 tw 阅读全文
posted @ 2021-11-27 21:29 勇往直前的力量 阅读(28) 评论(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 theor 阅读全文
posted @ 2021-11-26 11:49 勇往直前的力量 阅读(24) 评论(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 min 阅读全文
posted @ 2021-11-26 10:20 勇往直前的力量 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+- 阅读全文
posted @ 2021-11-25 22:51 勇往直前的力量 阅读(23) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页