摘要: E - Counting Cliques http://blog.csdn.net/eventqueue/article/details/52973747 http://blog.csdn.net/yuanjunlai141/article/details/52972715 1 #include<i 阅读全文
posted @ 2017-04-23 18:39 shulin15 阅读(273) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/pony1993/archive/2012/07/25/2607738.html 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 5 using namespace std 阅读全文
posted @ 2017-04-20 21:49 shulin15 阅读(258) 评论(0) 推荐(0) 编辑
摘要: http://www.ruanyifeng.com/blog/2015/06/poisson-distribution.html 阅读全文
posted @ 2017-04-20 13:45 shulin15 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 表t1: 表t2: 自然联接: 全外联接: 左外联接: 右外联接: 阅读全文
posted @ 2017-04-17 21:37 shulin15 阅读(243) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/66569#problem/F 题意:判断图中是否存在负权回路 首先,介绍图的邻接表存储方式 数据结构:图的存储结构之邻接表 邻接表建图,类似于头插法建单链表 head[x]:以x为源点的第一条边,初始值为-1. struct edge { in 阅读全文
posted @ 2017-04-07 21:44 shulin15 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 打开编译选项 阅读全文
posted @ 2017-04-06 16:13 shulin15 阅读(166) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/peixuan197/article/details/48084843 srand(time(0))以当前时间为种子 要取得[a,b)的随机整数,使用(rand() % (b-a))+ a (结果值含a不含b)。 要取得[a,b]的随机整数,使用(rand( 阅读全文
posted @ 2017-04-06 16:05 shulin15 阅读(160) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/66989#problem/C 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<string> 5 #include<algorithm> 6 #inc 阅读全文
posted @ 2017-04-06 11:06 shulin15 阅读(189) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/66989#overview 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<string> 5 #include<algorithm> 6 #incl 阅读全文
posted @ 2017-04-06 10:34 shulin15 阅读(253) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/66989#problem/A 单点修改,区间查询 方法一:线段树 http://www.cnblogs.com/kuangbin/archive/2011/08/15/2139834.html 1 #include<iostream> 2 #i 阅读全文
posted @ 2017-04-05 22:42 shulin15 阅读(246) 评论(0) 推荐(0) 编辑