题意:
裸的求可重组合数。
分析:
多项式乘法求系数的应用啊,不用dp。
代码:
//poj 3046
//sep9
#include
using namespace std;
const int maxN=1024;
const int maxL=100024;
const int mod=1000000;
int num[maxN];
int coef[maxL];
int tm...
分类:
其他好文 时间:
2015-04-20 20:59:09
阅读次数:
154
获取本地时间戳://
//获取时间戳
intgetTimeStamp()
{
timevaltm;
gettimeofday(&tm,NULL);
returntm.tv_sec;//单位:秒
//returntm.tv_usec;//单位:毫秒
}
//
分类:
其他好文 时间:
2015-04-16 06:50:11
阅读次数:
290
使用gmtime函数或localtime函数将time_t类型的时间日期转换为struct tm类型: 使用time函数返回的是一个long值,该值对用户的意义不大,一般不能根据其值确定具体的年、月、日等数据。gmtime函数可以方便的对time_t类型数据进行转换,将其转换为tm结构的数据方便数....
分类:
其他好文 时间:
2015-04-16 01:26:49
阅读次数:
650
gmtime函数与localtime函数的区别: gmtime函数返回的时间日期未经时区转换,是UTC时间(又称为世界时间,即格林尼治时间)。 localtime函数返回当前时区的时间, 转换日期时间表示形式time_t类型转换为struct tm类型示例: #include #inclu...
分类:
其他好文 时间:
2015-04-16 01:26:45
阅读次数:
2234
题目大意:给定一张平面图,求对偶图的最小树形图
这题TM考了我两遍!!两遍!!我拿了两遍MST的60分!
世界你赢了 你逼着我学了朱刘算法233
#include
#include
#include
#include
#include
#include
#define M 3030
#define INF 0x3f3f3f3f
using namespace std;
struc...
分类:
编程语言 时间:
2015-04-14 18:05:30
阅读次数:
186
越来越觉得主席树这个东西需要意会了……太TM深奥了TAT (??????)?? 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define REP(i, s, n) for(int i = s; i = s; i --)...
分类:
其他好文 时间:
2015-04-13 22:47:05
阅读次数:
148
linux mail 命令参数:使用mail发邮件时,必须先将sendmail服务启动。mail –s “邮件主题” –c”抄送地址” –b “密送地址” -- -f 发送人邮件地址 –F 发件人姓名 ,显示的内容为 发送的邮件内容...包含命令执行结果的MAIL发送:echo -e `ls /tm...
分类:
系统相关 时间:
2015-04-11 22:17:04
阅读次数:
268
在前一篇文章xms/xmx/xss在kette中的调优设置中,我对kettle进行了一次优化,这次我们再一次进行优化,这次效果非常明显,这次优化有两部分:一、修改jvm添加xmn,二、修改日志输出级别 在Java TM Performance一书...
分类:
其他好文 时间:
2015-04-11 18:04:32
阅读次数:
162
一.下面先交代一下测试云主机cpu:root@alexknight:/tmp/webbench-1.5# cat /proc/cpuinfo |grep modelmodel : 69model name : Intel(R) Core(TM) i5-4260U CPU @ 1....
分类:
其他好文 时间:
2015-04-11 01:14:08
阅读次数:
249
DECLARE @Table NVARCHAR(30)DECLARE tmpCur CURSOR FOR SELECT name FROM sys.objects WHERE TYPE='U' AND name LIKE N'HSUPA%'OPEN tmpCur FETCH NEXT FROM tm...
分类:
其他好文 时间:
2015-04-08 21:32:56
阅读次数:
111