Problem DescriptionThere are many people's name and birth in a list.Your task is to print the name from young to old.(There is no pair of two has the ...
分类:
其他好文 时间:
2015-09-05 22:06:25
阅读次数:
241
By using an emitter-follower or a Darlington pair,a voltage-follower op amp configuration can source higher currents than the op amp otherwise could.W...
分类:
其他好文 时间:
2015-09-05 13:40:53
阅读次数:
195
map m_mapTest; m_mapTest.insert(make_pair(1,"kong")); m_mapTest.insert(make_pair(2,"yang")); m_mapTest.insert(make_pair(1,"hello1")); m_mapTest.inser....
分类:
其他好文 时间:
2015-09-05 09:52:55
阅读次数:
144
今晚学了一下C++标准程序库, 来简单回顾和总结一下。 1.pair 结构体// defined in , in the std namespacenamespace std{ template struct pair{ // type names for the...
分类:
编程语言 时间:
2015-09-04 23:51:48
阅读次数:
195
DescriptionGiven N numbers, X1, X2, ... , XN, let us calculate the difference of every pair of numbers: ∣Xi - Xj∣ (1 ≤ i < j ≤ N). We can get C(N,2) d...
分类:
其他好文 时间:
2015-09-04 19:53:04
阅读次数:
902
今天学习了scala的界定,先来看看下面这段代码//class Pair[T] (val first : T,val second : T)class Pair[T 0) first else second}class Pair_Lower_Bound[T](val first : T,val s....
分类:
其他好文 时间:
2015-09-04 18:35:13
阅读次数:
149
题目链接 五个数,任意两个数的任意链接后的数还是质数 满足这个条件的最小五个数的和是多少? 结果:26033 纯暴力破解: package projecteuler51to60; import java.util.ArrayList; import java.util.List; import ja...
分类:
其他好文 时间:
2015-09-04 18:27:51
阅读次数:
234
题意:给一个n*m的矩阵,为1时代表空格子,为0时代表障碍格子,问如果不经过障碍格子,可以画一至多个圆的话,有多少种方案?(n 2 #define pii pair 3 #define INF 0x3f3f3f3f 4 #define LL long long 5 using namespace s...
分类:
其他好文 时间:
2015-09-04 18:27:45
阅读次数:
186
题意:有一个k*n的棋盘,要求用1*2的骨牌来铺满,有多少种方案?(k 2 #define pii pair 3 #define INF 0x3f3f3f3f 4 #define LL long long 5 using namespace std; 6 const int N=21000; 7 c...
分类:
其他好文 时间:
2015-09-03 21:46:25
阅读次数:
369
题意:有一个n*m的棋盘,要求用1*2的骨牌来覆盖满它,有多少种方案?(n 2 #include 3 #include 4 #include 5 #define pii pair 6 #define INF 0x3f3f3f3f 7 #define LL long long 8 using n...
分类:
其他好文 时间:
2015-09-03 13:59:27
阅读次数:
138