上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For e 阅读全文
posted @ 2017-08-05 09:07 小小超plus 阅读(103) 评论(0) 推荐(0)
摘要: The name of one small but proud corporation consists of n lowercase English letters. The Corporation has decided to try rebranding — an active marketi 阅读全文
posted @ 2017-08-05 09:03 小小超plus 阅读(274) 评论(0) 推荐(0)
摘要: 名词解释: 一串数字比如1、5、3、6、9、8、10,它的子序列是从左到右不连续的若干个数,比如1、5、6,3、9、8、10都是它的子序列。 最长上升子序列即从左到右严格增长的最长的一个子序列,1、5、6、9、10就是这个序列的一个最长上升子序列。 给出若干序列,求出每个序列的最长上升子序列长度。 阅读全文
posted @ 2017-08-03 08:33 小小超plus 阅读(236) 评论(0) 推荐(0)
摘要: Emily the entrepreneur has a cool business idea: packaging and selling snowflakes. She has devised a machine that captures snowflakes as they fall, an 阅读全文
posted @ 2017-08-02 15:39 小小超plus 阅读(222) 评论(0) 推荐(0)
摘要: 大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了! 做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上加难了,就像花钱总是比挣钱容易的道理一样。 话虽这样说,我还是要告诉大家,要想失败到一定程度也是不容易的。比如,我高中的时候,就有一个神奇的女生,在英语考试的时候,竟然把 阅读全文
posted @ 2017-08-02 11:29 小小超plus 阅读(183) 评论(0) 推荐(0)
摘要: 1 #include <iostream> 2 using namespace std; 3 #include<string.h> 4 #include<set> 5 #include<stdio.h> 6 #include<math.h> 7 #include<queue> 8 #include< 阅读全文
posted @ 2017-08-02 11:28 小小超plus 阅读(471) 评论(0) 推荐(0)
摘要: B君和G君聊天的时候想到了如下的问题。 给定自然数l和r ,选取2个整数x,y满足l <= x <= y <= r ,使得x|y最大。 其中|表示按位或,即C、 C++、 Java中的|运算。 Input包含至多10001组测试数据。 第一行有一个正整数,表示数据的组数。 接下来每一行表示一组数据, 阅读全文
posted @ 2017-08-02 11:27 小小超plus 阅读(214) 评论(0) 推荐(0)
摘要: Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a 阅读全文
posted @ 2017-08-02 11:25 小小超plus 阅读(309) 评论(0) 推荐(0)
摘要: There is a hill with n holes around. The holes are signed from 0 to n-1. A rabbit must hide in one of the holes. A wolf searches the rabbit in anticlo 阅读全文
posted @ 2017-08-02 11:24 小小超plus 阅读(183) 评论(0) 推荐(0)
摘要: 监狱有连续编号为1...N的N个房间,每个房间关押一个犯人,有M种宗教,每个犯人可能信仰其中一种。如果相邻房间的犯人的宗教相同,就可能发生越狱,求有多少种状态可能发生越狱 Input 输入两个整数M,N.1<=M<=10^8,1<=N<=10^12 Output 可能越狱的状态数,模100003取余 阅读全文
posted @ 2017-08-02 11:02 小小超plus 阅读(174) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页