基于nodejs的http模块通过smartqq实现自动收发qq消息的程序 ...
分类:
Web程序 时间:
2017-04-22 09:48:38
阅读次数:
283
pmap提供了进程的内存映射,pmap命令用于显示一个或多个进程的内存状态。其报告进程的地址空间和内存状态信息。Pmap实际上是一个Sun OS上的命令,linux仅支持其有限的功能。但是它还是对查看完整的进程地址空间很有帮助。我们需要PID或者运行的进程的唯一进程ID来查看进程内存状态,我们可以通 ...
分类:
系统相关 时间:
2017-04-22 09:31:28
阅读次数:
351
3的幂的和 思路; 矩阵快速幂; sn-1 3 1 sn * = 1 0 1 1 来,上代码: ...
分类:
其他好文 时间:
2017-04-22 09:21:45
阅读次数:
179
There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up (u), down (d), left (l) or right (r), but it ...
分类:
其他好文 时间:
2017-04-21 23:50:02
阅读次数:
504
#include #include #include #define max 100//数字位数 void add(char *s1,char *s2)//两位大于0的数字加法 { int mun1[max+1]={0},mun2[max+1]={0},m,n,i=0,j=0; m=strlen(s... ...
分类:
编程语言 时间:
2017-04-21 23:47:00
阅读次数:
362
dinic算法用于解决最大流问题。 注意每次BFS之前把dist数组清空,源点的dist设为1。 1 #include<stdio.h> 2 #include<string.h> 3 #include<algorithm> 4 #define inf 1000000000 5 using names ...
分类:
编程语言 时间:
2017-04-21 23:05:23
阅读次数:
240
整合kafka和storm例子网上很多,自行查找 问题描述: kafka是之前早就搭建好的,新建的storm集群要消费kafka的主题,由于kafka中已经记录了很多消息,storm消费时从最开始消费 问题解决: 下面是摘自官网的一段话: How KafkaSpout stores offsets ...
分类:
Web程序 时间:
2017-04-21 21:45:11
阅读次数:
554
题目链接:http://acm.csu.edu.cn/csuoj/problemset/problem?pid=1554 Description The SG value of a set (multiset) is the minimum positive integer that could n ...
分类:
其他好文 时间:
2017-04-21 20:07:50
阅读次数:
280
#include<stdio.h>#define M 1000000007int fp(int a,int b){ long long ret=1,pow=a;//ret:返回值;pow:基底 while(b!=0){ if(b&1) ret=(ret*pow)%M; pow=(pow*pow)%M ...
分类:
其他好文 时间:
2017-04-21 20:01:07
阅读次数:
137
Thanks to a certain "green" resources company, there is a new profitable industry of oil skimming. There are large slicks of crude oil floating in the ...
分类:
其他好文 时间:
2017-04-21 10:04:45
阅读次数:
238