This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Inp...
分类:
其他好文 时间:
2015-02-04 09:22:01
阅读次数:
150
uva 10012 How Big Is It?
Ian's going to California, and he has to pack his things, including his collection of circles. Given a set of circles, your program must find the smallest rectangular box...
分类:
其他好文 时间:
2015-02-03 23:11:02
阅读次数:
359
1036. Boys vs Girls (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time you are asked to tell the difference between the lowest gr...
分类:
其他好文 时间:
2015-02-03 14:57:25
阅读次数:
142
1 /**2 * 日期-计算2个日期的差值3 * @return int4 */5 public function get_difference($date, $new_date) {6 $date = strtotime($da...
分类:
Web程序 时间:
2015-02-01 20:22:29
阅读次数:
154
这个问题原本是 C++ 吧里有人问的, 我当时就立刻动手解决了, 结果后来才发现, STL 里已经有了对应的泛型算法了......看来我对 STL 知道的还是太少, 贴一下我当时完成的方法:set VecToSet (const vector &vec){ set tmp_set (vec.c...
分类:
其他好文 时间:
2015-01-31 17:51:02
阅读次数:
188
算法入门经典 训练指南 p189#include#include#include#include#includeusing namespace std;struct Item{ int s,b; Item(int s,int b) :s(s),b(b) {} bool operat...
分类:
其他好文 时间:
2015-01-30 17:21:12
阅读次数:
135
Iterated DifferenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 786Accepted Submission(s): 505P...
分类:
其他好文 时间:
2015-01-28 00:44:40
阅读次数:
259
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
Calling next() will return the next smallest number in the BST.
Note: next() and...
分类:
其他好文 时间:
2015-01-27 21:58:04
阅读次数:
172
Sum square difference
Problem 6
The sum of the squares of the first ten natural numbers is,
12 + 22 + ... + 102 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ....
分类:
编程语言 时间:
2015-01-27 09:34:10
阅读次数:
170
Problem Description
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 example, the LCM of 5, 7 and...
分类:
其他好文 时间:
2015-01-26 22:56:41
阅读次数:
202