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
uva 10196 Check The Check
#include <
cstdio
> #include <iostream> #include <algorithm> #include <
·
2015-11-13 10:27
check
zoj 3605 Find the Marble
这题的dp还是不难想的,然后把状态转移时候的概率算上去就可以了 代码中有注释 View Code 1 #include<iostream> 2 #include<
cstdio
·
2015-11-13 10:01
find
hdu 4687 Boke and Tsukkomi
#include <
cstdio
>
·
2015-11-13 10:55
HDU
poj2486(树形dp)
#include <iostream> 2 #include <cstring> 3 #include <vector> 4 #include <
cstdio
·
2015-11-13 10:41
poj
poj2923 (状态压缩01背包)
1 #include <iostream> 2 #include <
cstdio
> 3 using namespace std; 4 const int Ni = 1&
·
2015-11-13 10:40
poj
hdu1561(树形dp)
#include <iostream> 2 #include <vector> 3 #include <cstring> 4 #include <
cstdio
·
2015-11-13 10:38
HDU
hdu 3449(有依赖的01背包)
想买箱子中的物品必须先买下箱子,典型的依赖背包 dp[i][j]代表前i个箱子花费j的钱能获得的最大价值 1 #include <iostream> 2 #include <
cstdio
·
2015-11-13 10:37
HDU
HDU4360(spfa)
1 #include <iostream> 2 #include <vector> 3 #include <queue> 4 #include <
cstdio
·
2015-11-13 10:36
SPFA
hdu1712 分组背包(每组最多只选一个)
num[n][m]的矩阵,num[n][m] 代表的是花m天的时间学习第n门课程所获得的价值,求最多能获得多大的价值 #include <iostream> #include <
cstdio
·
2015-11-13 10:34
HDU
hdu2955 Robberies 01背包
1 #include <iostream> 2 #include <
cstdio
> 3 #include <map> 4 #include <cstring
·
2015-11-13 10:32
HDU
Atlantis1542(线段树求矩形覆盖面积)
pid=1542 1 #include <iostream> 2 #include <
cstdio
> 3 #include <cstring> 4
·
2015-11-13 10:31
ant
Picture 1828
pid=1828 求矩形的周长 1 #include <iostream> 2 #include <
cstdio
> 3 #include <algorithm
·
2015-11-13 10:31
c
poj3468A Simple Problem with Integers(线段树延时更新)
1 #include <iostream> 2 #include <
cstdio
> 3 #define lson l,mid,i<
·
2015-11-13 10:30
Integer
线段树+离散化
pid=4325 题意: 有n种花每种开放的时间从a到b(a到b的闭区间),问t时刻有多少种花开着(n<=10^6,a<=b<10^9) 1 #include <
cstdio
·
2015-11-13 10:28
线段树
Watashi's BG(搜索)
problemCode=3631 1 #include <iostream> 2 #include <cmath> 3 #include <
cstdio
>
·
2015-11-13 10:27
搜索
判断线段相交
#include <iostream> #include <cmath> #include <
cstdio
> using namespace std; struct
·
2015-11-13 10:26
判断
Floyd求最小环模板
pid=1599 网上找到的Floyd求最小环模板 1 #include <
cstdio
> 2 #include <algorithm> 3 using namespace
·
2015-11-13 10:23
floyd
线段树
pid=4302 1 #include<iostream> 2 #include<
cstdio
> 3 #include<cstring> 4
·
2015-11-13 10:22
线段树
最大流(Isap模板)
pid=1532 1 #include <iostream> 2 #include <
cstdio
> 3 #include <climits>
·
2015-11-13 10:21
SAP
最大流(Dinic模板)
pid=1532 1 #include<
cstdio
> 2 #include<cstring> 3 #include<queue>
·
2015-11-13 10:20
dinic
Intervals (spfa+差分约束)
#include <iostream> 2 #include <cstring> 3 #include <queue> 4 #include <
cstdio
·
2015-11-13 10:19
SPFA
过山车(匈牙利算法,最大二分图匹配)
pid=2063 1 #include <iostream> 2 #include <
cstdio
> 3 #include <cstring> 4
·
2015-11-13 10:18
二分图
A Walk Through the Forest dijkstra(邻接矩阵)
pid=1142 dijkstra(邻接矩阵) 1 #include <
cstdio
> 2 #include <cstring> 3 #include <iostream
·
2015-11-13 10:17
dijkstra
Rank of Tetris (并查集+拓普排序)
2 #include <cstring> 3 #include <vector> 4 #include <queue> 5 #include <
cstdio
·
2015-11-13 10:17
rank
蚂蚁区域 (bupt 322)
面积公式为(ai[i].y+ai[i+1].y)*(ai[i+1].x-ai[i].x)/2.0; 1 #include<iostream> 2 #include<
cstdio
&
·
2015-11-13 10:09
UP
单调递增最长子序列
View Code 1 #include<iostream> 2 #include<
cstdio
> 3 #include<cstring> 4 #define
·
2015-11-13 10:56
序列
矩形嵌套
ms | 内存限制:65535 KB 难度: 4 View Code #include<iostream>#include<
cstdio
·
2015-11-13 10:54
HDU 3478 Play with Chain (Splay树)
#include <iostream> #include <algorithm> #include <cmath> #include <
cstdio
·
2015-11-13 10:21
chain
Huffman编码
代码 #include " stdafx.h " #include <
cstdio
> #include < cstdlib
·
2015-11-13 10:44
Huffman
各种排序
nbsp; " stdafx.h " #define M 5 #define N 10 #include <
cstdio
·
2015-11-13 10:44
排序
Codeforces 484B Maximum Value(高效+二分)
#include <
cstdio
> #include <cstring> #in
·
2015-11-13 10:33
codeforces
hdu 4632 Palindrome subsequence
pid=4632 简单DP 代码: #include<iostream> #include<
cstdio
> #include<algorithm> #include
·
2015-11-13 10:24
sequence
hdu 4628 Pieces
4628 状态压缩DP 时间复杂度应该是 16*(2^32) 但是运行时要远小于这个数 所以加一定剪枝就可以过 代码: #include<iostream> #include<
cstdio
·
2015-11-13 10:21
HDU
hdu 4627 The Unsolvable Problem
pid=4627 分类讨论一下就可以 代码: #include<iostream> #include<
cstdio
> #include<algorithm>
·
2015-11-13 10:20
HDU
hdu 4617 Weapon
pid=4617 三维几何简单题 多谢高尚博学长留下的模板 代码: #include <iostream> #include <
cstdio
> #include <
·
2015-11-13 10:19
HDU
hdu 4609 3-idiots
pid=4609 FFT 不会 找了个模板 代码: #include <iostream> #include <
cstdio
> #include <
·
2015-11-13 10:18
HDU
hdu 4612 Warm up
pid=4612 将原图进行缩点 变成一个树 树上每条边都是一个桥 然后加一条边要加在树的直径两端才最优 代码: #include<iostream> #include<
cstdio
·
2015-11-13 10:17
HDU
hdu 4618 Palindrome Sub-Array
4618 直接DP+记忆化 虽然时间复杂度看起来是300^4 但实际执行起来要远远小于这个值 所有可以水过 代码: #include<iostream> #include<
cstdio
·
2015-11-13 10:16
array
hdu 4614 Vases and Flowers
pid=4614 直接线段树维护 代码: #include<iostream> #include<
cstdio
> #include<string> #include
·
2015-11-13 10:14
HDU
hdu 4608 I-number
pid=4608 直接暴力 代码: #include<iostream> #include<
cstdio
> #include<string> #include
·
2015-11-13 10:11
number
UVa 11762 - Race to 1
show_problem&problem=2862 晕 多加了一个# wa了N久 细节呀 代码及其注释: #include<iostream> #include<
cstdio
·
2015-11-13 10:08
RAC
UVa 10870 - Recurrences
Itemid=8&page=show_problem&problem=1811 矩阵快速幂 代码: #include<iostream> #include<
cstdio
·
2015-11-13 10:07
uva
Topcoder SRM 584 DIV1 600
思路太繁琐了 ,实在不想解释了 代码: #include<iostream> #include<
cstdio
> #include<string> #include
·
2015-11-13 10:07
topcoder
LA 5059 - Playing With Stones
但是可以找规律 a为偶数 SG(a)=a/2 a为奇数 SG(a)=SG(a/2) 代码: #include <iostream> #include <
cstdio
·
2015-11-13 10:04
with
UVa 11426 - GCD - Extreme (II)
;Itemid=8&page=show_problem&problem=2421 代码及其注释: #include <iostream> #include <
cstdio
·
2015-11-13 10:02
ext
UVa 11361 - Investigating Div-Sum Property
Itemid=8&page=show_problem&problem=2346 数位DP 代码: #include <iostream> #include <
cstdio
·
2015-11-13 10:00
property
UVa 11137 - Ingenuous Cubrency
Itemid=8&page=show_problem&problem=2078 简单递推 代码: #include <iostream> #include <
cstdio
·
2015-11-13 10:58
uva
Uva 11401 - Triangle Counting
Itemid=8&page=show_problem&problem=2396 要注意细节 代码: #include <iostream> #include <
cstdio
·
2015-11-13 10:56
count
Uva 11538 - Chess Queen
amp;page=show_problem&problem=2533 公式推导 代码: #include <iostream> #include <
cstdio
·
2015-11-13 10:56
uva
sdut 2609 A-Number and B-Number
相关注释见代码: #include<iostream> #include<
cstdio
> #include<vector&g
·
2015-11-13 10:54
number
上一页
13
14
15
16
17
18
19
20
下一页
按字母分类:
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
其他