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 2976 Dropping tests
1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm> 4 #define maxn
·
2015-11-13 07:51
test
poj 2891 Strange Way to Express Integers
id=2891 这道题的题意是:给你多个模性方程组:m mod ai=ri 求最小的m; 中国剩余定理 1 #include <
cstdio
> 2 #include <
·
2015-11-13 07:50
Integer
poj 1026 Cipher
1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm> 4 #define maxn
·
2015-11-13 07:49
poj
poj 3270 Cow Sorting
id=3270 这道题就是给你一个无序序列转换成有序序列需要花费的代价最小,交换a和b代价为a+b; 1 #include <
cstdio
> 2 #include <
·
2015-11-13 07:48
sort
hdu 3367 Pseudoforest
pid=3367 1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm>
·
2015-11-13 07:45
REST
hdu 2489 Minimal Ratio Tree
1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm> 4 #defi
·
2015-11-13 07:44
tree
hdu 3926 Hand in Hand
1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm> 4
·
2015-11-13 07:43
HDU
poj 3164 Command Network
1 #include <
cstdio
> 2 #include <cstring> 3 #include <cmath> 4 #include <
·
2015-11-13 07:43
command
hdu 3938 Portal
1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm>
·
2015-11-13 07:42
Portal
POJ 3293 Ugly Windows
分析:模拟就可以了,要注意的是题目说了所求的矩形变长要大于3;而且会有矩形内含的情况,这样的话外圈的是不再解里的 附代码: View Code #include<
cstdio
·
2015-11-13 07:26
windows
APIO 2009 抢掠计划
代码很丑但还是贴一下防丢: View Code #include<
cstdio
>#include<cstdlib>
·
2015-11-13 07:24
api
NOI 2009 植物大战僵尸
代码: View Code #include<iostream>#include<
cstdio
>#
·
2015-11-13 07:23
SPOJ 1435 Vertex Cover 树形DP
一组数据: 151 21 31 41 1010 910 1112 1012 1410 1313 154 55 74 66 8 答案是6 1 #include <
cstdio
>
·
2015-11-13 07:38
over
KMP入门题目[不定期更新]
HDU 1711 Number Sequence(模板题) #include <
cstdio
> const int MAXN = 1000010; const int
·
2015-11-13 07:38
KMP
HDU 4604 deque 最长上升子序列
比如: 1 9 4 4 2 2 2 3 3 3 7 #include <
cstdio
> #include <cstring> #include <
·
2015-11-13 07:37
deque
LA 6047 Perfect Matching 字符串哈希
1 #include <
cstdio
> 2 #include <cstring> 3 #include <cstdlib> 4
·
2015-11-13 07:35
match
HDU 3038 How Many Answers Are Wrong 并查集带权路径压缩
1 #include <
cstdio
> 2 #include <cstring> 3 #include <cstdlib> 4
·
2015-11-13 07:34
HDU
ZOJ 3349 Special Subsequence 简单DP + 线段树
1 #include <
cstdio
> 2 #include <cstring> 3 #include <cstdlib> 4 #include
·
2015-11-13 07:32
sequence
UVa 1402 Runtime Error 伸展树
看来不能太依赖模板啊orz…… 1 #include <
cstdio
> 2 #include <cstring> 3 #include <
·
2015-11-13 07:31
Runtime
HDU 4358 Boring counting 树状数组+思路
研究了整整一天orz……直接上官方题解神思路 1 #include <
cstdio
> 2 #include <cstring> 3 #include
·
2015-11-13 07:29
count
HDU 4351 Digital root 线段树区间合并
依然不是十分理解……待考虑…… 1 #include <
cstdio
> 2 #include <cstring> 3 #include <
·
2015-11-13 07:28
root
LA 6187 - Never Wait for Weights 并查集的带权路径压缩
v - u = d[a] - d[b] + w; 在合并两个集合修改根节点时,把v的根改为u,同时v到根的距离为d[a] - d[b] + w; 1 #include <
cstdio
·
2015-11-13 07:28
wait
UVa 10075 - Airlines
1 #include <
cstdio
> 2 #include <map> 3 #include <cmath> 4 #include
·
2015-11-13 07:26
AIR
UVa 1301 - Fishnet
1 #include <
cstdio
> 2 #include <cmath> 3 #include <algorithm> 4 5 using
·
2015-11-13 07:25
net
UVa 11524 - InCircle
推公式 1 #include <
cstdio
> 2 #include <cmath> 3 4 double Cal( double a, double b
·
2015-11-13 07:23
uva
UVa 1453 - Squares 旋转卡壳求凸包直径
参考:http://www.cppblog.com/staryjy/archive/2010/09/25/101412.html 1 #include <
cstdio
> 2 #
·
2015-11-13 07:23
uva
《训练指南》上的计算几何模板
不完整,待补充 #include <
cstdio
> #include <cmath> #include <algorithm> using namespace
·
2015-11-13 07:22
模板
UVa 11646 - Athletics Track
400.0 / ( 2.0 + ( 2.0 * atan( b / a ) * sqrt( a*a + b*b ) ) / a ) y = x * b / a; 1 #include <
cstdio
·
2015-11-13 07:21
rack
UVa 10566 - Crossed Ladders
1 #include <
cstdio
> 2 #include <cmath> 3 #include <algorithm> 4 5 #define
·
2015-11-13 07:20
sed
POJ 1011 Sticks
#include<
cstdio
> #include<cstring> #include<algorithm> #include<cmath> using
·
2015-11-13 06:12
poj
Codeforces Beta Round #10 B. Cinema Cashier (树状数组)
#include <
cstdio
> #include <iostream> #include <cstring> #include <algorithm>
·
2015-11-13 06:04
codeforces
poj 2689 Prime Distance——素数筛法
网上说的办法是先筛出一些素数,然后用这些筛出来的素数来筛后面的素数 我是筛掉了2^16的素数,当所给区间的右端点小于这个值时,就直接用筛出来素数来求 容易错的地方写在注释里面好了…… #include<
cstdio
·
2015-11-13 06:36
Prim
hdu 3976 Electric resistance——高斯消元
当满秩时高斯消元的模版好了 2011-08-26 20:54:21 Accepted 3976 0MS 236K 1093 B G++ Tiramitu #include<
cstdio
·
2015-11-13 06:30
HDU
hdu 3835 R(N)——勒让德两平方数之和定理
先开始枚举的n的约数,后来超时了,就改成了这个版本的…… #include<
cstdio
>#include<cstdlib>#include
·
2015-11-13 06:24
HDU
poj 3671 3670——简单DP
在网上搜到了一个神码,我现在都不知道为什么: #include<
cstdio
>int i,n,a,f[3]={0};int main(){ sc
·
2015-11-13 06:17
poj
poj 1035 Spell Checker —— 字符串
先开始写的LCS,后来超时惨了……就在网上查……结果发现LCS完全没必要,只用写一个o(n)的判断就可以了…… #include<
cstdio
>#include<cstdlib>
·
2015-11-13 06:14
check
hdu 1800 Flying to the Mars ——hash
由于不同的串产生的ha不一样,让hash[t]=ha,就可以判断当前的串是不是和原来的那个串一样了 #include<
cstdio
>#include<cstdlib>#include
·
2015-11-13 06:13
hash
hdu 1496 Equations ——hash
/*Equationsalgorithm:hashdate:2011-07-23 16:56:12time:187MSmemory:7988Klanguage:G++*/ #include<
cstdio
·
2015-11-13 06:12
hash
HDU4146 水~
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<iostream> 4 const
·
2015-11-13 06:53
HDU
POJ 1732
View Code 1 #include<
cstdio
>
·
2015-11-13 06:02
poj
POJ 1972
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<algorithm> 4
·
2015-11-13 06:01
poj
POJ 1059
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<algorithm> 4
·
2015-11-13 06:00
poj
POJ 3282
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<algorithm> 4
·
2015-11-13 06:59
poj
POJ 2581
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<algorithm> 4
·
2015-11-13 06:56
poj
POJ 3047
题解:数学||模板 View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<algorithm
·
2015-11-13 06:55
poj
POJ 1167
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<al
·
2015-11-13 06:53
poj
POJ 2641
View Code 1 #include<
cstdio
> 2 #inc
·
2015-11-13 06:53
poj
POJ 2649
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include&l
·
2015-11-13 06:49
poj
POJ 2191
View Code 1 #include<ctime> 2 #include<
cstdio
> 3 #include<cstring> 4
·
2015-11-13 06:49
poj
POJ 1944
View Code 1 #include<
cstdio
> 2 #include<cstring> 3 #include<algorithm> 4
·
2015-11-13 06:48
poj
上一页
17
18
19
20
21
22
23
24
下一页
按字母分类:
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
其他