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 1181(大数判素数 ,分解)
1 //miller_rabin 判断一个大数是否是素数 2 //pollard_rho 大数因子分解 3 #include<
cstdio
> 4 #include<
·
2015-11-11 18:11
poj
poj 1698(二分图匹配, 最大流)
1 #include <iostream> 2 #include <
cstdio
> 3 #include <algorithm> 4 #include &
·
2015-11-11 18:09
poj
poj 3083 Children of the Candy Corn
分别按靠左边,右边和最短距离到达出口所学要的步数; 思路:用dfs求得靠左靠右走到达出口的步数,用bfs求最短最少到达出口的步数; 代码: View Code #include <
cstdio
·
2015-11-11 17:04
children
poj 1573 Robot Motion
代码: View Code #include <
cstdio
>#include <iostream>#include <cstring&
·
2015-11-11 17:03
robot
poj 2632 Crashing Robots
id=2632 题意:判断机器人在行走的过程中的状况; 思路:简单的模拟题,就是有点麻烦; 代码: View Code #include <
cstdio
>#include
·
2015-11-11 17:02
Crash
sdutacm 2389 Ballot evaluation
action=showproblem&problemid=2389 题意:判断表达式是否成立;精度要求非常高; 代码: View Code #include <
cstdio
·
2015-11-11 17:02
eval
poj 3295 Tautology
为取值为true或false的元素,K, A, N, C, E则为对应的运算法则; 思路:从后往前递推,并且要尝试所有的取值可能; 代码: View Code #include <
cstdio
·
2015-11-11 17:01
auto
poj 1753 Flip Game
题意和2965差不多,思路也是一样的:链接:2965 代码: View Code #include <iostream>#include <
cstdio
>#include
·
2015-11-11 17:00
game
ural 1353. Milliard Vasya's Function
:输入一个s,求从1-10^9的数中各位数字之和是s的个数; 思路:采用一个0-81的数组记录和为i的个数,然后对每一位都从0-9进行遍历; View Code #include<
cstdio
·
2015-11-11 17:57
function
ural 1081. Binary Lexicographic Sequence
题意:给定一个有N个元素的字符串,每个元素都是0或1,且1和1不能相连,问第n个字符串是什么; 思路;首先是一个斐波那契数列,然后往下减输出; View Code #include<
cstdio
·
2015-11-11 17:56
sequence
poj 1072 Coins (背包)
; 思路:采用背包,在这里要加一个记录个数的数组num[],这样就变成二维的了,减少了时间; View Code #include<iostream>#include<
cstdio
·
2015-11-11 17:56
poj
sdutacm 1566 幸运数(bfs)
problemid=1566 这是上个星期测试赛的最后一个题目,那天真是悲剧了,一个也没做出来,; 思路:采用VONGONG的思路做的,用bfs搜索来找: View Code #include<
cstdio
·
2015-11-11 17:55
ACM
hdu 2639 Bone Collector II (01背包)
pid=2639 题意:给你一些Bone和一个背包体积,求第K大的价值; 思路:采用了三维的数组第三维是存(1-k)大的值的: View Code #include<
cstdio
&
·
2015-11-11 17:54
Collector
hdu 2082 找单词
pid=2082 又是一个母函数模板题,不多说了: View Code #include<
cstdio
>using namespace std;int main(){ int
·
2015-11-11 17:51
HDU
2014年9月6日
1 #include<iostream> 2 #include<
cstdio
> 3 #include<cstring> 4 using namespace
·
2015-11-11 17:42
20140710总结
1 #include<iostream> 2 #include<
cstdio
> 3 #include<cstring> 4 using namespace
·
2015-11-11 17:41
总结
20140711总结
1 #include<iostream> 2 #include<
cstdio
> 3 #include<cstring> 4 using namespace
·
2015-11-11 17:41
总结
20140708总结
1 #include<iostream> 2 #include<
cstdio
> 3 #include<cstring> 4 using namespa
·
2015-11-11 17:40
总结
OpenJudge Trans
#include<iostream>#include<
cstdio
>#include<algorithm>#include<cmath>#include&
·
2015-11-11 17:39
open
SPOJ QTREE
我的代码跟QZ的太像了囧,我发现我什么都是跟他学的,以至于我俩同时写一个数据结构题交上去就差不多会被判作弊…… #include <iostream> #include <
cstdio
·
2015-11-11 17:10
tree
二叉数中序遍历的非递归实现(使用栈)
2 #include " Stack_Sequence.h " 3 #include <
cstdio
·
2015-11-11 17:58
非递归
c fopen文件读写
fopen <
cstdio
> FILE * fopen ( const char * filename, const char * mode ); Open file Opens
·
2015-11-11 17:17
open
USACO 5.1 fencing the cows——计算几何/凸包模板
此题纯凸包模板: /*ID:zlqest11LANG: C++TASK: fc*/#include <iostream>#include <
cstdio
>#include &
·
2015-11-11 17:28
USACO
SRM528 DIV2 解题报告
那么选花费较小的一种字母替换即可(关键在于费用,字符串中只要标记一下就行了),如果两端只有一个问号,那么花费是确定的,根据对称的另一端累加最小花费 #include <iostream>#include <
cstdio
·
2015-11-11 17:24
div
SDUT_基本算法解题报告
View Code 1 #include <iostream> 2 #include <
cstdio
> 3 #include <cstring> 4 #include
·
2015-11-11 17:22
算法
HDU4003 - Find Metal Mineral(树形DP)
看了他的题解再写的~~ 代码: #include <iostream> #include <
cstdio
> #include <cstring> #include
·
2015-11-11 17:07
find
CF29D - Ant on the Tree(DFS)
输出任意一条符合要求的路径 题解 每次从叶子节点开始遍历到上一个叶子节点就OK了, 这个就是符合要求的路径 代码: #include <iostream> #include <
cstdio
·
2015-11-11 17:06
tree
HDU4417 - Super Mario(主席树)
,然后用第R颗主席树区间[1,K]内数的数量减去第L-1颗主席树区间[1,K]内数的数量就得到了查询的结果 代码: #include <iostream> #include <
cstdio
·
2015-11-11 17:02
super
UVa1449 - Dominating Patterns(AC自动机)
你的任务是找出那些字符串在文本中出现的次数最多 题解 一个文本串,多个模式串,这刚好是AC自动机处理的问题 代码: #include <iostream> #include <
cstdio
·
2015-11-11 17:57
Pattern
HDU2222 - Keywords Search(AC自动机)
代码: #include <iostream> #include <string> #include <
cstdio
> #include <cstring
·
2015-11-11 17:57
search
2013 ACM/ICPC Asia Regional Changsha Online–C (模拟)
代码: #include <iostream> #include <
cstdio
> #include <cstring> #include <algorithm
·
2015-11-11 17:55
online
POJ2752 - Seek the Name, Seek the Fame(KMP)
给定一个字符串S,求出所有既是S的前缀又是S的后缀的子串长度 题解 从末尾位置倒推,经过的失配函数值就是题目要求求的 代码: #include <iostream> #include <
cstdio
·
2015-11-11 17:52
name
POJ3080 - Blue Jeans(KMP+二分)
WA了一次 代码: #include <iostream> #include <
cstdio
> #include <cstring> #include <
·
2015-11-11 17:52
poj
UVa1328 - Period(KMP找最短循环节)
如果这个前i个字符能够组成一个周期串,那么”错位”部分刚好是一个循环节i-f[i]就是循环节长度~~~~ 代码: #include <iostream> #include <
cstdio
·
2015-11-11 17:49
KMP
HDU1075 - What Are You Talking About(Trie树)
并且每个火星文单词结尾的节点记录相应英文单词的位置,然后进行查询即可~~~~ 代码: #include <iostream> #include <algorithm> #include <
cstdio
·
2015-11-11 17:46
trie
POJ3461–Oulipo(KMP)
正宗KMP 代码: #include<iostream> #include<cstring> #include<string> #include<
cstdio
·
2015-11-11 17:42
poj
POJ1836 - Alignment(LIS)
代码: #include<iostream> #include<
cstdio
> #include<algorithm> #include<cstring
·
2015-11-11 17:29
poj
UVa11584 - Partitioning by Palindromes(区间DP)
i-1]+1)(i<=j,s[i..j]是回文串) 代码: #include<iostream> #include<algorithm> #include<
cstdio
·
2015-11-11 17:27
partition
POJ2407–Relatives(欧拉函数)
互质的数的个数 题解 欧拉函数模板题~~~因为n过大~~~所以直接用公式求 代码: #include<iostream> #include<cmath> #include<
cstdio
·
2015-11-11 17:19
relative
HDU1698 - Just a Hook(成段替换+懒惰标记)
代码: #include<iostream> #include<
cstdio
>
·
2015-11-11 17:06
HDU
POJ3368 - Frequent values
代码 #include<iostream> #include<cstring> #include<
cstdio
> #include<algor
·
2015-11-11 17:01
value
uva 10815 - Andy's First Dictionary
#include<iostream> #include<cctype> #include<cstdlib> #include<
cstdio
> #include
·
2015-11-11 17:08
first
HDOJ 1247 -- Hat Words Trie
然后对于每个单词枚举前后位置 1 /* 2 PROG: Hat’s Words 3 ID : yewei 4 LANG: C++ 5 */ 6 #include <
cstdio
·
2015-11-11 17:22
word
HDOJ 1251 -- 统计难题 Trie
统计难题 3 ID : ouyangyewei 4 LANG: C++ 5 */ 6 #include <string> 7 #include <
cstdio
·
2015-11-11 17:19
trie
USACO 2.3.1 Longest Prefix --- Trie
3 ID : ouyangyewei 4 LANG: C++ 5 */ 6 #include <string.h> 7 #include <
cstdio
·
2015-11-11 17:19
USACO
zoj 1002 最大独立集
然后贴模板~~ View Code #include<
cstdio
> #include<cstring> #define N 50 bool flag[
·
2015-11-11 17:41
ZOJ
zoj 1492 最大团顶点数量
View Code #include<
cstdio
> #include<cstring> #define N 51 bool flag[N], a[N][N]; int
·
2015-11-11 17:40
ZOJ
最大团与最大独立点集
#include<
cstdio
> #include<cstring> #define N 1010 bool flag[N], a[N][N]; int ans, cnt
·
2015-11-11 17:35
POJ 2976
www.cnblogs.com/lotus3x/archive/2009/03/21/1418480.html #include <iostream> #include <
cstdio
·
2015-11-11 17:15
poj
HDU 4771
,给一些物品坐标,问取完所有物品的最小步数,不能取完输出-1 物品数最多只有四个,状态压缩一下bfs即可 #include <iostream> #include <
cstdio
·
2015-11-11 17:15
HDU
上一页
66
67
68
69
70
71
72
73
下一页
按字母分类:
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
其他