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
POJ 3498
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<algorithm>
·
2015-11-13 06:49
poj
POJ 2570
可以看成floyd,用bool变量标记公司 View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include
·
2015-11-13 06:48
poj
POJ 2976
个物品,实际就是保留n-k个,然后就在n个物品中选出最大的n-k个物品,然后再看剩下的物品里面权值为正就加进来,最后,看ans是否等于0 View Code 1 #include<
cstdio
·
2015-11-13 06:47
poj
POJ 2042
打表解之 View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<algorithm&
·
2015-11-13 06:45
poj
POJ 2738
我第一次居然想爆搜~~~ View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<algorithm
·
2015-11-13 06:45
poj
POJ 3310
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include&l
·
2015-11-13 06:44
poj
POJ 3189
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<algorithm>
·
2015-11-13 06:43
poj
[HDU 1358]Period[kmp求周期]
#include <cstring> #include <
cstdio
> const int MAXN = 1000005; int next[MAXN];
·
2015-11-13 06:15
HDU
poj3070 Fibonacci 矩阵快速幂
这差不多是个模板了 #include <cstdlib> #include <cstring> #include <
cstdio
> #include
·
2015-11-13 06:59
fibonacci
BNU Box of Bricks
AC代码: #include<iostream> #include<
cstdio
> #include<algorithm>
·
2015-11-13 06:52
BO
poj 1990
位置x,2个牛交流声音为max(v1,v2)*(x1-x2),求总的 10000^2 tle 用的树状数组做的,排序,2个,小于vi的牛的总数和距离总和 #include <
cstdio
·
2015-11-13 06:34
poj
hdu1503
#include<iostream> #include<
cstdio
> #include<cstdlib> #include<cstring
·
2015-11-13 06:17
HDU
poj 3263 Tallest Cow
#include <iostream> #include <
cstdio
> #include <
·
2015-11-13 06:58
poj
Light OJ 1316 A Wedding Party 最短路+状态压缩DP
从起点到终点在走过尽量多商店的情况下求最短路 思路:首先预处理每两点之前的最短路 然后仅仅考虑那些商店 个数小于15嘛 就是TSP问题 状态压缩DP搞一下 状态压缩姿势不正确 有必要加强 #include <
cstdio
·
2015-11-13 06:47
part
poj3206(bfs+最小生成树)
#include <
cstdio
> #include <cstring>
·
2015-11-13 06:52
最小生成树
poj1679(最小生成树)
#include<iostream> #include<
cstdio
> #include<cstring> #include&l
·
2015-11-13 06:51
最小生成树
poj2236(并查集)
#include <
cstdio
> #include
·
2015-11-13 06:49
poj
poj3613(恰经过N条边的最短路)
#include <
cstdio
> #include <
·
2015-11-13 06:48
poj
poj1860(spfa判正环)
分析:如何存在正环,能无限增加钱,肯定可以赚了,因此用spfa判一下即可 #include <
cstdio
>
·
2015-11-13 06:45
SPFA
poj1797(最短路小变形)
#include <
cstdio
> #include <cstring> #include <string> #include <
·
2015-11-13 06:44
poj
poj2387(最短路)
#include <
cstdio
> #include <cstring> #include <string> #include <cmat
·
2015-11-13 06:43
poj
poj2955(区间dp)
#include <
cstdio
> #incl
·
2015-11-13 06:37
poj
hdu2612(bfs)
#include <
cstdio
> #include &
·
2015-11-13 06:11
HDU
hdu1254(bfs+dfs)
#include <
cstdio
> #include &
·
2015-11-13 06:10
HDU
poj3984(经典dfs)
#include <
cstdio
> #include <cstring> #include <cmath> #include <iostream>
·
2015-11-13 06:08
poj
poj3278(bfs)
#include <
cstdio
> #include <cstring> #include <cmath> #include <iostream
·
2015-11-13 06:08
poj
fzu2150(bfs)
#include <
cstdio
> #include <c
·
2015-11-13 06:07
bfs
hdu1709(母函数)
#include <
cstdio
> #include <cstring>
·
2015-11-13 06:06
HDU
zoj1940(三维广搜)
#include <
cstdio
> #include <cstring> #include <cmath> #include
·
2015-11-13 06:06
ZOJ
hdu1160(最长上升子序列)
#include <
cstdio
>
·
2015-11-13 06:48
HDU
hdu1260(dp)
pid=1260 分析:简单dp,dp[i]=min(dp[i-1]+a[i],dp[i-2]); #include <
cstdio
> #include
·
2015-11-13 06:46
HDU
hdu2955(变形01背包)
抢劫的金额为0时,肯定是安全的,所以dp[0]=1;其他金额初始为最危险的所以概率全为0; #include <
cstdio
> #include
·
2015-11-13 06:36
HDU
hdu4004(二分)
#include <
cstdio
&
·
2015-11-13 06:34
HDU
hdu2870(dp求最大子矩阵)
#include <
cstdio
> #include <cstring> #include <cmath> #
·
2015-11-13 06:33
HDU
hdu1025(nlon(n)最长上升子序列)
#include <
cstdio
> #include <cstring> #include <cma
·
2015-11-13 06:29
HDU
hdu 1166 敌兵布阵(线段树,树状数组)
pid=1166 直接线段树模板 AC代码: #include<iostream> #include<
cstdio
> #include<cstring&
·
2015-11-13 06:26
树状数组
757 - Gone Fishing
先定向选择依次只能到达第一个湖、第二个湖……最后一个湖,就会变成选择最优解问题,选择和最大的就可以了,注意有可能数据都是为零的时候,这是把所有的时间都用在第一个湖就可以了 #include <
cstdio
·
2015-11-13 05:50
one
130831组队赛-Regionals 2011, Asia - Kuala Lumpur
#include<iostream> #include<
cstdio
> #include<algorithm> #include<cstring
·
2015-11-13 05:51
reg
【BZOJ】2019: [Usaco2009 Nov]找工作(spfa)
将飞机场的费用变成负,然后spfa找正环就行了 #include <
cstdio
> #include <cstring> #include <cmath>
·
2015-11-13 05:33
USACO
【BZOJ】2100: [Usaco2010 Dec]Apple Delivery(spfa+优化)
#include <
cstdio
>
·
2015-11-13 05:32
apple
【POJ】3255 Roadblocks(次短路+spfa)
#include <
cstdio
> #include <cstring&g
·
2015-11-13 05:28
block
算法导论:堆排序
time: 9/7/2014 3 //author: zrss 4 //reference: introduction to algorithms 5 6 #include <
cstdio
·
2015-11-13 05:41
算法导论
cf C. Bombs
1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm> 4 #define maxn
·
2015-11-13 05:59
bom
cf B. Color the Fence
http://codeforces.com/contest/349/problem/B 贪心 1 #include <
cstdio
> 2 #include <cstring
·
2015-11-13 05:58
color
cf B. Resort
1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm> 4 #define maxn
·
2015-11-13 05:58
sort
cf B. Fixed Points
http://codeforces.com/contest/347/problem/B 1 #include <
cstdio
> 2 #include <cstring&
·
2015-11-13 05:56
fixed
cf C. Alice and Bob
1 #include <
cstdio
> 2 #include <cstring> 3 #include <a
·
2015-11-13 05:56
ICE
sgu To xor or not to xor
1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm> 4 #define ll
·
2015-11-13 05:55
or
cf D. Alternating Current
http://codeforces.com/contest/344/problem/D 1 #include <
cstdio
> 2 #include <cstring&
·
2015-11-13 05:54
current
hdu 4961 Boring Sum
1 #include <
cstdio
> 2 #include <cstring> 3 #include <vect
·
2015-11-13 05:53
HDU
上一页
19
20
21
22
23
24
25
26
下一页
按字母分类:
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
其他