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
stdlib
spfa经过deque(双向队列)优化后的模板
nbsp; spfa经过deque(双向队列)优化后的模板 //C #include <stdio.h> #include <
stdlib
.h
·
2015-11-02 18:45
deque
链表
#include "stdafx.h" #include <
stdlib
.h> #include <stdio.h>  
·
2015-11-02 18:31
链表
poj2993 poj2669
#include <iostream> #include <stdio.h> #include <string> #include <
stdlib
.h
·
2015-11-02 18:07
poj
linux调试工具ipcs的深入分析
system v系统共享内存 用ipcs调试共享内存 测试源程序如下: #include <stdio.h> #include <string.h> #include <
stdlib
.h
·
2015-11-02 18:46
linux
c primer plus 习题答案(5)
p352.6 1 #include<stdio.h> 2 #include<
stdlib
.h> 3 #include<string.h> 4
·
2015-11-02 18:03
Prim
c primer plus 习题答案(4)
p319.3 1 #include<stdio.h> 2 #include<
stdlib
.h> 3 #include<ctype.h> 4 #include
·
2015-11-02 18:02
Prim
c primer plus 习题答案(3)
p281.2 1 #include<stdio.h> 2 #include<
stdlib
.h> 3 #define SIZE 5 4 void copy_arr
·
2015-11-02 18:02
Prim
c primer plus 习题答案(2)
p242.8 1 #include<stdio.h> 2 #include<
stdlib
.h> 3 4 int main() 5 { 6 int x, y
·
2015-11-02 18:01
Prim
c primer plus 习题答案(1)
p186.3 1 #include<stdio.h> 2 #include<
stdlib
.h> 3 #define SIZE 30 4 int main(void
·
2015-11-02 18:00
Prim
应要求写的比较简单的单元测试代码
#include <assert.h> #include <stdio.h> #include <
stdlib
.h> /* 作者:猪头 被测模块功能:编写一个累加整数数组元素的函数
·
2015-11-02 18:49
单元测试
各种排序算法(C语言)
#include <
stdlib
.h> #include <stdio.h> void DataSwap(int* data1, int* data2) {
·
2015-11-02 18:32
排序算法
从字符串中找出你想要的内容(字符串匹配)
以下是从字符串中抠出你想要的关键字内容代码: 有错误的地方请大家指正(gcc中编译运行通过) 谢谢 #include <stdio.h> #include <
stdlib
.h&
·
2015-11-02 18:30
字符串
【C】制作简单的时钟减法程序
#include <stdio.h> #include <
stdlib
.h> #include <string.h> #define ARGC_NUM 3 #
·
2015-11-02 18:11
程序
用C实现字符串分割并返回所有子串
#include <stdio.h>#include <
stdlib
.h>#include <unistd.h>#include <string.h>
·
2015-11-02 18:26
字符串
HDU 1166 敌兵布阵
该题可以用树状数组也可以用线段数; 树状数组:#include<stdio.h>#include<
stdlib
.h>#include<string.h>int c
·
2015-11-02 18:41
HDU
HUD 3791 二叉搜索树
#include<stdio.h>#include<
stdlib
.h>#include<string.h>int main(){ char num[1024],
·
2015-11-02 18:39
搜索
HDU 1175 连连看
#include<stdio.h> #include<
stdlib
.h> #include<string.h> struct T { i
·
2015-11-02 18:34
HDU
HDU 2102 A计划
该题是一道典型的搜索题, #include<stdio.h> #include<
stdlib
.h> #include<string.h> struct Node
·
2015-11-02 18:33
HDU
HDU 2579 Dating with girls(2)
#include<stdio.h> #include<
stdlib
.h> #include<string.h> const int inf=0x7fffffff
·
2015-11-02 18:32
with
HDU 1728 逃离迷宫
搞了我好久才把他给弄出来;这里采取的方法是当选取一个方向是就一直走到底,如果没有到终点,那么一定会要转弯; #include<stdio.h>#include<
stdlib
.h>
·
2015-11-02 18:31
HDU
围困
#include<stdio.h> #include<
stdlib
.h> #include<math.h> double x1,Y1,x2,y2,x3,y3,x
·
2015-11-02 18:31
HDU 2717 Catch That Cow
这里要注意的就是边界条件,就是2*X不要超过人与牛的距离绝对值之差加上牛的距离,应为超过就没意义了,因为最长时间为人与牛的距离绝对值之差; #include<stdio.h> #include<
stdlib
.h
·
2015-11-02 18:30
catch
HDU 1072 Nightmare
这题重要的走过的点可以走第二次,但是我们会发现当走过4时我们可以标记为0,因为回走是没必要 #include<stdio.h> #include<
stdlib
.h> #include
·
2015-11-02 18:29
HDU
HDU 1548 A strange lift
#include<stdio.h>#include<
stdlib
.h>struct T{ int x, n; }q[424];int BFS( int n,int
·
2015-11-02 18:28
HDU
HDU 2178 猜数字
1 #include<stdio.h> 2 #include<
stdlib
.h> 3 __int64 pow( int n ) 4 { 5 __int64 sum=1;
·
2015-11-02 18:28
HDU
poj 2992 Divisors
#include<stdio.h>#include<string.h> #include<
stdlib
.h>int Prime( int prime[] ){ int
·
2015-11-02 18:27
div
HDU 1426 Sudoku Killer
同时就是判断横竖不能又重复的,也就是不能等于你要填入的数据,还有一点就是每个小3*3的矩阵要是1-9不能重复,这里就对该坐标x/3*3就可以了; #include<stdio.h>#include<
stdlib
.h
·
2015-11-02 18:26
sudo
poj 2479 Maximum sum
然后反过来求每个数段的最大的和; 分析:先求顺序从左到右到该数的最大和;反序就是SUM[i-1]=SUM[i]+num[i-1 #include<stdio.h>#include<
stdlib
.h
·
2015-11-02 18:26
poj
HDU 1301 Jungle Roads
n-1行,每一行代表一个地点与多个地点相连结,例如:A 2 B 12 I 25代表A与连接2地方B,I并且价钱为12,25; #include<stdio.h>#include<
stdlib
.h
·
2015-11-02 18:25
HDU
HDU 2222 Keywords Search
这个题是AC自动机的模版题; #include<stdio.h>#include<
stdlib
.h>#include<string.h>struct node{
·
2015-11-02 18:24
search
HDU 3371 Connect the Cities
#include<stdio.h>#include<
stdlib
.h>struct t{ int x,y,cost; }kru[25024];int set[524
·
2015-11-02 18:23
connect
HDU 1879 继续畅通工程
这题就是注意一下当状态为1是就把这两给点合并到一个集合; #include<stdio.h>#include<
stdlib
.h>struct t{ int x,y,flag
·
2015-11-02 18:23
HDU
HDU 1501 Zipper
刚开始知道要用记忆化搜索,然而自己仍然去试了一下暴力DFS,TLE之后我就死心了,就利用记忆化搜索,就是用一个标记hash标记已经拜访过的; #include<stdio.h>#include<
stdlib
.h
·
2015-11-02 18:22
zip
HDU 1142 A Walk Through the Forest
#include<stdio.h>#include<
stdlib
.h>#include<string.h>const int inf=0x7fffffff;struct
·
2015-11-02 18:21
REST
HDU 1045 Fire Net
该题我直接用的暴力搜索,因为之最大只有4*4,这个题最重要的是标记; #include<stdio.h>#include<
stdlib
.h>int max,map[6][6]
·
2015-11-02 18:20
HDU
HDU 1075 What Are You Talking About
该题是一道字典树的题目,就是是要你翻译一下,如果你学了字典树就会发现这是一道水体; #include<stdio.h>#include<
stdlib
.h>#include<
·
2015-11-02 18:18
HDU
HDU 1010 Tempter of the Bone
该题TLE了几次,后来才发现要用奇偶剪纸,如果起点到终点的步数为偶数那么不管你怎样走,步数一定为偶数; #include<stdio.h>#include<
stdlib
.h>
·
2015-11-02 18:18
HDU
HDU 1864 最大报销额
#include<stdio.h>#include<
stdlib
.h>#include<string.h>int f[5000024]={0};
·
2015-11-02 18:16
HDU
HDU 3049 Data Processing
这题给定的数一定能被N整除,最后要%1000003,那么我们就%1000003*N;这样我们就不要担心数据过大的问题; #include<stdio.h>#include<
stdlib
.h
·
2015-11-02 18:16
process
HDU 2104 hide handkerchief
#include<stdio.h>#include<
stdlib
.h>int Gcd( int a,int b ){ b==0?
·
2015-11-02 18:15
ide
HDU 2187 A sequence of numbers
该题是是给出前3个数,要么是等差要么是等比,要你求第k个数,这个题关键是用到快速取幂; #include<stdio.h>#include<
stdlib
.h>long long
·
2015-11-02 18:14
sequence
HDU 1163 Eddy's digital Roots
#include<stdio.h>#include<
stdlib
.h>#include<math.h>inlin
·
2015-11-02 18:12
root
HDU 1212 Big Number
该题就从最高位取余,余数再乘以10就可以了; #include<stdio.h>#include<
stdlib
.h>#include<string.h>int main
·
2015-11-02 18:11
number
HDU 1297 Children’s Queue
#include<stdio.h> #include<
stdlib
.h> int num[1024][300]={0}; int main() { int n;
·
2015-11-02 18:09
children
HDU 1147 poj 2653 Pick-up sticks
1086 You can Solve a Geometry Problem too已经解释了)不过我的代码还是注释一下: #include<stdio.h>#include<
stdlib
.h
·
2015-11-02 18:09
poj
HDU 1155 Bungee Jumping
#include<stdio.h> #include<
stdlib
.h> int main() { double k,l,s,w; while( scanf
·
2015-11-02 18:06
ping
HDU 1012 u Calculate e
#include<stdio.h> #include<
stdlib
.h> int main() { int n=1,a[10]={1}; while(
·
2015-11-02 18:05
HDU
HDU 1222 Wolf and Rabbit
该题是一题找规律题,当n与m都是偶数或是倍数是就存在这样的洞, 方法一: #include<stdio.h> #include<
stdlib
.h> int main()
·
2015-11-02 18:04
HDU
HDU 2546 饭卡 DP(背包)
#include<stdio.h> #include<
stdlib
.h> int ZeroOnePack( int price[],int money,int
·
2015-11-02 18:01
HDU
HDU 2191 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活
pid=2191 #include<stdio.h> #include<
stdlib
.h> void CompletePack( int price,int f[],int
·
2015-11-02 18:59
HDU
上一页
71
72
73
74
75
76
77
78
下一页
按字母分类:
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
其他