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
HDU 1870 愚人节的礼物
题解:简单的数括号问题…… #include <
cstdio
> char s[1005]; int main(){ while(scanf("%s",s
·
2015-11-12 16:30
HDU
HDU 1509 Windows Message Queue
优先队列的基本运用…… #include <
cstdio
> #include <cstring> #include <queue> using namespace
·
2015-11-12 16:29
windows
HDU 1276 士兵队列训练问题
模拟题,学了一下list it=li.erase(it):指向删除后的第一个元素 #include <
cstdio
> #include <list> using namespace
·
2015-11-12 16:28
HDU
HDU 3328 Flipper
题解:直接建n个栈,模拟过程即可…… #include <
cstdio
> #include <cstring> #include <stack> using
·
2015-11-12 16:27
HDU
HDU 1022 Train Problem I
栈的基本操作…… #include <
cstdio
> #include <cstring> #include <stack> using namespace
·
2015-11-12 16:26
HDU
HDU 1027 Ignatius and the Princess II
求n个数的第m中全排列…… 题解:直接用强大的STL,next_permutation:求序列的下一个排列,还有一种prev_permutation:求上一个全排列…… #include <
cstdio
·
2015-11-12 16:24
HDU
HDU 1709 The Balance
题解:因为天平两边都可以放砝码,所以需要再建一个负的砝码值,然后用母函数即可…… #include <
cstdio
> #include <iostream> using
·
2015-11-12 16:23
HDU
HDU 2152 Fruit
系数为1的母函数…… #include <
cstdio
> #include <cstring> using namespace std; int n,m,size
·
2015-11-12 16:22
HDU
HDU 3571 N-dimensional Sphere
高斯消元,今天数学死了无数次…… #include <
cstdio
> #include <cstring> #include <cmath> #include
·
2015-11-12 16:21
HDU
HDU 1398 Square Coins
最简单的母函数模板题: #include <
cstdio
> #include <cstring> using namespace std; int c1[305
·
2015-11-12 16:21
HDU
HDU 2451 Simple Addition Expression
题解:排列组合分类讨论即可…… #include <
cstdio
> #include <cmath> #include <cstr
·
2015-11-12 16:20
express
HDU 3589 Jacobi symbol
彻底对数学绝望了 #include <
cstdio
> #include <cmath> int flag[1005],p[500],a; int d[100]; int
·
2015-11-12 16:19
jacob
HDU 3307 Description has only two Sentences
数学实在是差到不行了…… #include <
cstdio
> #include <cstring> #include <algorithm> #include
·
2015-11-12 16:18
script
HDU 3802 Ipad,IPhone
http://wutyyzchangde.blog.163.com/blog/static/172226566201132311311374/ #include <
cstdio
> typedef
·
2015-11-12 16:18
iPhone
HDU 3579 Hello Kiki
题解:不互质的中国剩余定理 #include <
cstdio
> #include <iostream> #define ll long long #define maxn
·
2015-11-12 16:17
HDU
HDU 1787 GCD Again
题目大意:求小于n的gcd(i,n)大于1的个数; 题解:欧拉函数直接求gcd(i,n)==1的个数 用n减即可 #include <
cstdio
> int eular(int
·
2015-11-12 16:15
HDU
HDU 2824 The Euler function
筛法计算欧拉函数 #include <iostream> #include <
cstdio
> using namespace std; const int maxn=3000005
·
2015-11-12 16:14
function
HDU 2215 Maple trees
增量法的最小包围圈算法,不会…… #include <
cstdio
> #include <cstring> #include <iostream> #include
·
2015-11-12 16:12
tree
HDU 2202 最大三角形
题解:先算出凸包,然后枚举凸包上的点计算即可 #include <
cstdio
> #include <cmath> #include <cstdlib> #include
·
2015-11-12 16:12
HDU
HDU 1147 Pick-up sticks
#include <
cstdio
> const double eps=1e-14; const int maxn=1e5+10; struct node{double x1,
·
2015-11-12 16:11
HDU
HDU 1392 Surround the Trees
题解:计算凸包…… #include <
cstdio
> #include <cstring> #include <algorithm> #include
·
2015-11-12 16:10
round
HDU 3360 National Treasures
#include <
cstdio
> #include <cstring> #include <iostream> using namespace std
·
2015-11-12 16:07
360
HDU 1507 Uncle Tom's Inherited Land*
#include <
cstdio
> #include <cstring> #include <a
·
2015-11-12 16:06
Inherit
HDU 1498 50 years, 50 colors
#include <
cstdio
> #include <cstring> #include
·
2015-11-12 16:05
color
HDU 1281 棋盘游戏
题解:将所有的横坐标看作一边的点,纵坐标看作另一边的点,然后二分图匹配即可,建图很巧妙…… #include <
cstdio
> #include <cstring> #
·
2015-11-12 16:04
HDU
HDU 1151 Air Raid
#include <
cstdio
> #include <
·
2015-11-12 16:04
raid
HDU 1054 Strategic Game
掌握了一个图论知识:图的最小点覆盖=二分图的最大匹配 #include <
cstdio
> #include <
·
2015-11-12 16:01
game
HDU 2722 Here We Go(relians) Again
最短路,建图太麻烦,略过…… #include <
cstdio
> #include <cstring> #include <queue> const
·
2015-11-12 16:00
HDU
C++模板:Dijkstra+优先队列
#include <
cstdio
> #include <cstring> #include <queue> #include <utility>
·
2015-11-12 16:00
dijkstra
HDU 3339 In Action
题解:首先计算所有点到起点的最短路,就得到了代价,现在又有价值,那么就是一个01背包~ #include <
cstdio
> #include <cstring&g
·
2015-11-12 16:59
action
HDU 2962 Trucking
#include <
cstdio
> #include <cstring> #include <utility> #include <queue>
·
2015-11-12 16:58
HDU
HDU 1874 畅通工程续
最短路~ #include <
cstdio
> #include <cstring> #include <utility> #include <queue
·
2015-11-12 16:57
HDU
HDU 2680 Choose the best route
#include <
cstdio
> #include <cstring> #include <utility> #include <queue>
·
2015-11-12 16:57
route
HDU 2112 HDU Today
题解:最短路,注意是无向图,而且有起点和终点相同的情况…… #include <iostream> #include <
cstdio
> #include <cstring
·
2015-11-12 16:56
HDU
HDU 2544 最短路
题解:最短路模板题 #include <
cstdio
> #include <utility> #include <cstring> #include <
·
2015-11-12 16:55
HDU
HDU 2066 一个人的旅行
题解:最短路~ #include <
cstdio
> #include <utility> #include <cstring> #include <queue
·
2015-11-12 16:55
HDU
HDU 3367 Pseudoforest
题解:最大生成树加判环…… #include <
cstdio
> #include <algorithm> using namespace std; struct node
·
2015-11-12 16:54
REST
HDU 3371 Connect the Cities
题解:最小生成树 #include <
cstdio
> #include <algorithm> using namespace std; struct node{int
·
2015-11-12 16:52
connect
HDU 1301 Jungle Roads
题解:最小生成树………… #include <
cstdio
> #include <algorithm> using namespace std; struct node{
·
2015-11-12 16:52
HDU
HDU 1879 继续畅通工程
题解:最小生成树 #include <
cstdio
> #include <algorithm> using namespace std; struct node{int
·
2015-11-12 16:51
HDU
HDU 1233 还是畅通工程
题解:最小生成树 #include <
cstdio
> #include <algorithm> using namespace std; struct node{int
·
2015-11-12 16:50
HDU
HDU 1102 Constructing Roads
#include <
cstdio
> #include <cstring> #include <algorithm> using namespace std;
·
2015-11-12 16:49
struct
HDU 3486 Interviewe
ST算法: #include <
cstdio
> #include <algorithm> #include <cstring> using name
·
2015-11-12 16:46
interview
HDU 2874 Connections between cities
题解:求树上最短路,所以直接LCA: 倍增求LCA: #include <
cstdio
> int f[10010][18]; int s[10010],d[10010],from[
·
2015-11-12 16:45
Connection
HDU 2852 KiKi's K-Number
权值线段树 #include <
cstdio
> #include <cstring> const int N=200000,M=220000; int k,q,x,y,
·
2015-11-12 16:43
number
HDU 1166 敌兵布阵
树状数组 #include <
cstdio
> #include <cstring> using namespace std; const int N=50010; int
·
2015-11-12 16:42
HDU
HDU 1892 See you~
二维树状数组 #include <
cstdio
> #include <algorithm> using namespace std; #define N 1005 int
·
2015-11-12 16:42
HDU
HDU 3231 Box Relations
(Special Judge) 实力还是太弱了,完全不会…… #include <
cstdio
> #include <stdlib> #include <iostream
·
2015-11-12 16:40
HDU
HDU 1285 确定比赛名次
#include <
cstdio
> #include <iostream> using namespace std; #define N 505 int map[N][
·
2015-11-12 16:39
HDU
HDU 1075 What Are You Talking About
字典树…… #include <
cstdio
> #include <cstring> using namespace std; struct node{int son[
·
2015-11-12 16:37
HDU
上一页
51
52
53
54
55
56
57
58
下一页
按字母分类:
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
其他