E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
cstdio
【wikioi】1033 蚯蚓的游戏问题(费用流)
#include <
cstdio
&
·
2015-11-13 11:15
游戏
【BZOJ】2761: [JLOI2011]不重复数字(set+巨水题+超坑题)
行末不能有空格 #include <
cstdio
> #include <set> using namespace std; set<int> s; int
·
2015-11-13 11:13
set
【wikioi】1191 数轴染色(线段树+水题)
#include <
cstdio
> #include <cstring> #include <cmath> #include <string> #
·
2015-11-13 11:12
线段树
【wikioi】1229 数字游戏(dfs+水题)
(水题有点严重啊) #include <
cstdio
> #include <algorithm> using namespace std; int n, m;
·
2015-11-13 11:09
DFS
【COGS】714. USACO 1.3.2混合牛奶(贪心+水题)
(本来不想放题解的,但是为了满足下自己的虚荣心吧) #include <
cstdio
> #include <cstring&
·
2015-11-13 11:07
USACO
【wikioi】1108 方块游戏(模拟)
#include <
cstdio
> #include <cstring> #include <cmath> #i
·
2015-11-13 11:07
游戏
【POJ】2104 K-th Number(区间k大+主席树)
#include <
cstdio
> #include <iostream> #include <algorithm> using namespace std;
·
2015-11-13 11:05
number
【wikioi】1922 骑士共存问题(网络流/二分图匹配)
#include <
cstdio
>
·
2015-11-13 11:05
二分图
【NOIP2003】传染病控制(-贪心/dfs)
#include <
cstdio
> #include <cstring> #include <cmath> #
·
2015-11-13 11:03
2003
【TYVJ】1307 联络员(最小生成树)
(水题红色警报) #include <
cstdio
> #include <cstring> #include <cmath> #include <string
·
2015-11-13 11:01
最小生成树
【wikioi】1022 覆盖(匈牙利)
染色后裸匈牙利orz #include <
cstdio
> #include <cstring> #include <cmath> #include <
·
2015-11-13 11:00
IO
【BZOJ】1041: [HAOI2008]圆上的整点(几何)
#include <
cstdio
> #includ
·
2015-11-13 11:58
2008
【BZOJ】1269: [AHOI2006]文本编辑器editor(Splay)
#include <string> #include <
cstdio
> #inc
·
2015-11-13 11:48
editor
割点的模板
例题:【POJ】1523 SPF(割点) #include <
cstdio
> #include <cstring> #include <cmath> #in
·
2015-11-13 11:48
模板
最小费用最大流模板
spfa未优化版本: #include <
cstdio
> #include <cstring> #include <
·
2015-11-13 11:47
最大流
网络流模板
最大流测试题:usaco草地排水 EK: 时间复杂度:O(VE^2) 代码复杂度:最易 代码: #include <
cstdio
> #include <cstring>
·
2015-11-13 11:46
网络流
【wikioi】1282 约瑟夫问题
#include <
cstdio
> using namespace std; #define lson l, m, rt << 1 #define rson m+1,
·
2015-11-13 11:40
IO
hdoj1062
//hdoj 1062 Text Reverse 文本反转 #include<iostream> #include<
cstdio
> #include
·
2015-11-13 11:04
OJ
HDU 3062 Party(2-sat)
HDU 3062 Party 题目链接 2sat模板题 代码: #include <
cstdio
> #include <cstring> #include &
·
2015-11-13 11:10
part
[Huffman]Hdu 2527 Safe Or Unsafe
1 #include <iostream> 2 #include <
cstdio
> 3 #include <queue> 4 #include
·
2015-11-13 11:20
Huffman
[Max Sum]hdu 1003
Water ~ 1 #include <iostream> 2 #include <cstring> 3 #include <
cstdio
> 4
·
2015-11-13 11:18
HDU
POJ 1469 ZOJ1140 二分匹配裸题
很裸,左点阵n,右点阵m 问最大匹配是否为n #include <
cstdio
> #include <cstring> #include <vector
·
2015-11-13 11:29
poj
poj 1321
链接 dfs, 由于两处小小的错误,导致浪费好多时间 按行搜索,然后在把依搜索的列标记一下 #include <
cstdio
> #include <cstring
·
2015-11-13 11:24
poj
线段树菜鸟一题+归并排序【求逆序数】POJ2299
#include <iostream> #include <
cstdio
> #inclu
·
2015-11-13 11:53
归并排序
hdu1754经典
/*hdu1754满二叉树递推式处理线段树,输入输出优化外挂*/#include<
cstdio
>const int M=262144;int max(int a,int b){return
·
2015-11-13 11:41
HDU
hdu1698线段树
#include<iostream>#include<
cstdio
>#include<cstring>using namespace std;const int MAX
·
2015-11-13 11:40
HDU
hdu1754线段树
#include "iostream"#include <
cstdio
>#define MAX 200005#define lc(x) ((x)<<1)#define
·
2015-11-13 11:40
HDU
Codeforces 474A Keyboard (水
题目链接:点击打开链接 键盘移位了,问输出相应的字母 #include <
cstdio
> #include <cstring> char a[105]; char b[3
·
2015-11-13 11:07
codeforces
C. Greg and Friends
http://codeforces.com/contest/295/problem/C 简单DP 代码: #include<iostream> #include<
cstdio
·
2015-11-13 11:48
reg
B. Greg and Graph
/295/problem/B floyd 算法的本质是动态规划 只有理解其中动态规划的原理 才能更好的运用 代码: #include<iostream> #include<
cstdio
·
2015-11-13 11:48
Graph
A. Greg and Array
如果是对某一连续的区间进行加上某个数 或者以等差数列的形式进行加数 都可以对此区间进行一定的标记 最后遍历一边就可以出结果 代码: #include<iostream> #include<
cstdio
·
2015-11-13 11:47
array
B. Yaroslav and Two Strings
太复杂了而且出现在div2的B题 说明是个水题 仔细想了一下 计算相关情况的数量 最后该加的加 该减的减就可以了 代码: #include<iostream> #include<
cstdio
·
2015-11-13 11:45
String
hdu 2586 How far away ?
pid=2586 在lca的基础上维护一下距离 维护是在并查集里进行的 代码: #include <iostream> #include <
cstdio
·
2015-11-13 11:43
HDU
hdu 4534 郑厂长系列故事——新闻净化
pid=4534 自动机+DP(状态压缩) 整体思路应该很明确,但要注意一些细节方面的处理 否则会wa 代码: #include<iostream> #include<
cstdio
·
2015-11-13 11:43
HDU
hdu 4536 XCOM Enemy Unknown
pid=4536 细节很重要呀 一个小的地方错了 检查了N久呀 鄙视自己 代码: #include<iostream> #include<
cstdio
·
2015-11-13 11:42
com
poj 1185 炮兵阵地
id=1185 状态压缩+dp 代码: #include<iostream> #include<
cstdio
> #include<cstring> #include
·
2015-11-13 11:41
poj
poj 3691 DNA repair
id=3691 AC自动机+DP 代码: #include<iostream> #include<cmath> #include<
cstdio
> #include
·
2015-11-13 11:38
AIR
poj 1625 Censored!
里面的重载就可以 从树上节点转移到另一节点时 对其可行性的求解一定要注意 代码: #include<iostream> #include<cmath> #include<
cstdio
·
2015-11-13 11:37
poj
C. Main Sequence
/286/problem/C 思维是关键 想通了就感觉简单了 代码: #include<iostream> #include<cmath> #include<
cstdio
·
2015-11-13 11:35
sequence
hdu 4504 威威猫系列故事——篮球梦
pid=4504 dp也可以 组合也可以 下面是组合代码: #include<iostream> #include<cmath> #include<
cstdio
·
2015-11-13 11:34
HDU
hdu 4501 小明系列故事——买年货
pid=4501 多维背包 代码: #include<iostream> #include<cmath> #include<
cstdio
> #include
·
2015-11-13 11:33
HDU
poj 1204 Word Puzzles
id=1204 AC自动机 代码: #include<iostream> #include<cmath> #include<
cstdio
> #include
·
2015-11-13 11:32
word
poj 2778 DNA Sequence
id=2778 AC自动机 + 矩阵连乘 代码: #include<iostream> #include<cmath> #include<
cstdio
>
·
2015-11-13 11:32
sequence
fzu Problem 2005 Computer Virus on Planet Pandora
pid=2005 AC自动机 需要优化 否则超时 代码: #include<iostream> #include<cmath> #include<
cstdio
·
2015-11-13 11:31
com
hdu 3065 病毒侵袭持续中
pid=3065 AC自动机 代码: #include<iostream> #include<cmath> #include<
cstdio
> #include
·
2015-11-13 11:30
HDU
hdu 2896 病毒侵袭
2896 AC自动机 ASCII可见字符是从 33~126 代码: #include<iostream> #include<cmath> #include<
cstdio
·
2015-11-13 11:30
HDU
hdu 2222 Keywords Search
需要三个步骤 1,建立trie 2,求fail指针 3,匹配 代码: #include<iostream> #include<cmath> #include<
cstdio
·
2015-11-13 11:29
search
E. Coin Troubles
/284/problem/E 思维很重要呀 原来是一个背包呀 代码: #include<iostream> #include<cmath> #include<
cstdio
·
2015-11-13 11:28
in
D. Cow Program
contest/284/problem/D dp+记忆化搜索 代码: #include<iostream> #include<cmath> #include<
cstdio
·
2015-11-13 11:28
c
poj 2513 Colored Sticks
id=2513 字典树+并查集+欧拉路 代码: #include<iostream> #include<cmath> #include<
cstdio
>
·
2015-11-13 11:27
color
上一页
9
10
11
12
13
14
15
16
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他