It is no use doing what you like ; you have got to like what you do.——Winston Churchill(British prime minister)不能爱哪行才干哪行,要干哪行爱哪行。——美国首相 丘吉尔. W.
分类:
其他好文 时间:
2014-07-16 23:21:01
阅读次数:
236
1. Only version not older than R2013 supports Raspberry Pi. First, download support package in Matlab: http://www.mathworks.cn/matlabcentral/fx_files/...
分类:
其他好文 时间:
2014-07-10 13:42:50
阅读次数:
338
where vs having当一个sql语句中存在where子句,会先执行where,然后执行group by,然后执行having.一般来说,only use 'having' when you use 'group by'Always use 'having' with aggregate f...
分类:
其他好文 时间:
2014-07-07 16:58:32
阅读次数:
183
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2-...
分类:
其他好文 时间:
2014-07-07 16:17:00
阅读次数:
139
GNU Autotools can not only handle making (compiling and linking), distributing, transplanting source code for different platforms, but can also track ...
分类:
其他好文 时间:
2014-06-30 12:33:53
阅读次数:
400
题目
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down...
分类:
其他好文 时间:
2014-06-30 11:10:34
阅读次数:
211
本题也是使用Prime和Kruskal都可以的最小生成树的题解。
本题一点新意就是:需要除去最大的S-1个距离,因为可以使用卫星覆盖这些距离。
技巧:建图建有向图,速度快点,不用计算两边。
这里使用Prime,因为是稠密图。
#include
#include
#include
#include
#include
#include
using std::sort;
c...
分类:
Web程序 时间:
2014-06-30 00:16:45
阅读次数:
292
From gtk+-2.10.2 configure --help we can see (I just only view the 2.10.2, not know other 2.10.x):--with-gdktarget=[x11/linux-fb/win32/quartz/directfb...
分类:
系统相关 时间:
2014-06-29 18:48:27
阅读次数:
430
11105 - Semi-prime H-numbers
题目链接
题意:给定4 * n + 1的集合,在这个集合基础上求这个集合的集合素数,然后求出这个集合中,由两个集合素数相乘得到的数有几个。
思路:先筛出集合素数,然后暴力一下两两组合有多少个即可。
代码:
#include
#include
const int N = 1000005;
int vis[N...
分类:
其他好文 时间:
2014-06-28 07:47:24
阅读次数:
358
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A
man, a plan, a canal: Panama" is a palindrome.
"race
a car" is no...
分类:
其他好文 时间:
2014-06-27 10:36:41
阅读次数:
183