上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 30 下一页
摘要: Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrences of a ... 阅读全文
posted @ 2015-04-29 12:51 Eason Liu 阅读(5177) 评论(0) 推荐(0) 编辑
摘要: Aprimeis a positive integer X that has exactly two distinct divisors: 1 and X. The first few prime integers are 2, 3, 5, 7, 11 and 13.A prime D is cal... 阅读全文
posted @ 2015-04-28 19:37 Eason Liu 阅读(941) 评论(0) 推荐(0) 编辑
摘要: A zero-indexed array A consisting of N integers is given. A triplet (P, Q, R) istriangularif it is possible to build a triangle with sides of lengths ... 阅读全文
posted @ 2015-04-28 18:16 Eason Liu 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 时间限制:2000ms单点时限:1000ms内存限制:256MB描述两个数a和 b (a 2 using namespace std; 3 4 int T, N; 5 vector v; 6 vector> graph; 7 vector link; 8 vector visited; 9 boo... 阅读全文
posted @ 2015-04-28 16:40 Eason Liu 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 时间限制:10000ms单点时限:1000ms内存限制:256MB描述上一回我们已经将所有有问题的相亲情况表剔除了,那么接下来要做的就是安排相亲了。因为过年时间并不是很长,所以姑姑希望能够尽可能在一天安排比较多的相亲。由于一个人同一天只能和一个人相亲,所以要从当前的相亲情况表里选择尽可能多的组合,且... 阅读全文
posted @ 2015-04-28 16:14 Eason Liu 阅读(905) 评论(0) 推荐(0) 编辑
摘要: 题目描述:在读高中的时候,每天早上学校都要组织全校的师生进行跑步来锻炼身体,每当出操令吹响时,大家就开始往楼下跑了,然后身高矮的排在队伍的前面,身高较高的就要排在队尾。突然,有一天出操负责人想了一个主意,想要变换一下队形,就是当大家都从楼上跑下来后,所有的学生都随机地占在一排,然后出操负责人从队伍中... 阅读全文
posted @ 2015-04-28 00:56 Eason Liu 阅读(346) 评论(0) 推荐(0) 编辑
摘要: Description:Count the number of prime numbers less than a non-negative number,nHint:The number n could be in the order of 100,000 to 5,000,000.click t... 阅读全文
posted @ 2015-04-27 22:58 Eason Liu 阅读(1999) 评论(0) 推荐(1) 编辑
摘要: 时间限制:1000ms单点时限:1000ms内存限制:64MB描述小Hi和小Ho是一对好朋友,出生在信息化社会的他们对编程产生了莫大的兴趣,他们约定好互相帮助,在编程的学习道路上一同前进。这一天,他们遇到了一连串的字符串,于是小Hi就向小Ho提出了那个经典的问题:“小Ho,你能不能分别在这些字符串中... 阅读全文
posted @ 2015-04-24 18:39 Eason Liu 阅读(3371) 评论(0) 推荐(1) 编辑
摘要: A non-empty zero-indexed array A consisting of N integers is given.A triplet (X, Y, Z), such that 0 ≤ X 3 4 // you can write to stdout for debugging... 阅读全文
posted @ 2015-04-24 14:08 Eason Liu 阅读(422) 评论(0) 推荐(0) 编辑
摘要: Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6,val= 6Return:1 --> 2 --> 3 --... 阅读全文
posted @ 2015-04-23 19:20 Eason Liu 阅读(1787) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 30 下一页