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 1114 Piggy-Bank
题解:完全背包问题(背包要装满) #include <
cstdio
> using namespace std; int e,b,n; int f[10005];
·
2015-11-12 20:04
pig
HDU 2084 数塔
题解:经典数塔问题 #include <
cstdio
> #include <iostream> using namespace std; #define rep(i,m
·
2015-11-12 20:02
HDU
HDU 1160 FatMouse's Speed
题解:最长上升子序列的应用,按w升序,s降序排列后进行DP找最长序列,用pre[]数组记录该点的前驱,从而打印路径 #include <
cstdio
> #include <algorithm
·
2015-11-12 20:01
HDU
HDU 1087 Super Jumping! Jumping! Jumping!
题解:最长上升子序列的扩展应用,不过,加上的是当前值,而不是1 /*最长上升子序列扩展应用*/ #include <
cstdio
> using namespace std; int
·
2015-11-12 20:00
super
HDU 1003 Maxsum
#include <
cstdio
> #define rep(i,n) for(int i=1;i<=n;i++) int main(){ int t,l=0;
·
2015-11-12 20:59
HDU
HDU 2018 母牛的故事
递推式:f[n]=f[n-1]+f[n-3] #include <
cstdio
> #include <iostream> using namespace std; long
·
2015-11-12 20:56
HDU
HDU 2501 Tiling_easy version
递推式:f[n]=2*f[n-2]+f[n-1] #include <
cstdio
> #include <iostream> using namespace std;
·
2015-11-12 20:56
version
HDU 2046 骨牌铺方格
题解:简单的斐波那契数列 #include <
cstdio
> #include <iostream> using namespace std; long long f[
·
2015-11-12 20:55
HDU
HDU 2044 一只小蜜蜂...
#include <
cstdio
> #include <iostream> using namespace std; long long f[50]; int main(
·
2015-11-12 20:54
HDU
HDU 2041 超级楼梯
递推式:f[n]=f[n-1]+f[n-2] #include <
cstdio
> int f[41]; int main() { int i,t; f[1]=1
·
2015-11-12 20:54
HDU
HDU 2067 小兔的棋盘
题解:卡特兰数的几何意义,所以答案就是卡特兰数的两倍 #include <
cstdio
> #include <iostream> using namespace std;
·
2015-11-12 20:53
HDU
HDU 1131 Count the Trees
卡特兰数再乘上n的阶乘 #include<iostream> #include<
cstdio
> using namespace std; #define base 10000
·
2015-11-12 20:52
count
HDU 1267 下沙的沙子有几粒?
#include <
cstdio
> #include <iostream> using namespace std; long long f[21][21]; int main
·
2015-11-12 20:52
HDU
HDU 1250 Hat's Fibonacci
#include <
cstdio
> int num[10000][260]={0}; int main(){ int i,j,n; num[1][0]=1; num
·
2015-11-12 20:49
fibonacci
HDU 1130 How Many Trees?
裸的卡特兰数 C++#include<iostream> #include<
cstdio
> using namespace std; #define base 10000
·
2015-11-12 20:49
tree
HDU 1018 Big Number
+1=log10(1)+log10(2)+log10(3)+……+1; #include <
cstdio
> #include <cmath> int main(){
·
2015-11-12 20:47
number
HDU 1002 A + B Problem II
/*高精度*/#include <
cstdio
> #include <iostream> using namespace std; const int modnum=10;
·
2015-11-12 20:47
HDU
HDU 1013 Digital Roots
#include <
cstdio
> #i
·
2015-11-12 20:45
root
HDU 1222 Wolf and Rabbit
题解:经过分析我们可以得到,当洞穴数与遍历间隔数互质时,一定不会有安全洞穴,所以,这就是简单的GCD的运用: #include <
cstdio
> int gcd(int a,int b)
·
2015-11-12 20:44
HDU
HDU 1997 汉诺塔VII
题解参考博客: http://blog.csdn.net/hjd_love_zzt/article/details/9897281 #include <
cstdio
> int n,ns
·
2015-11-12 20:43
HDU
HDU 1071 The area
#include <
cstdio
> double x1,x2,x3,y1,y2,y3; double a,s,k; double fuck(double x) {
·
2015-11-12 20:41
HDU
HDU 1271 整数对
#include <
cstdio
> #include
·
2015-11-12 20:40
HDU
HDU 1286 找新朋友
#include <
cstdio
> int eular(int n){ int ret=1,i; for(i=2;i*i<=n;i++) if(n%i=
·
2015-11-12 20:39
HDU
C++之sort函数
C++中的sort函数可以直接完美地取代Pas中十多行的快排代码,在这里,总结一下sort函数的用法: 首先是不加参数的情况: #include<
cstdio
·
2015-11-12 20:39
sort
HDU 2136 Largest prime factor
#include <
cstdio
> #define max 1000000 int prim[max]={0}; int main() { int n;
·
2015-11-12 20:38
Prim
HDU 1722 Cake
#include<
cstdio
> int gcd(int m, int n) { return m==0?
·
2015-11-12 20:37
HDU
HDU 1713 相遇周期
#include <
cstdio
> long long gcd(long long a,long long b) { if (b==0) return a; return
·
2015-11-12 20:37
HDU
HDU 1108 最小公倍数
#include <
cstdio
> int gcd(int a,int b) { if (b==0) return a; else return gcd(b,a%b)
·
2015-11-12 20:35
HDU
HDU 1157 Who's in the Middle
#include <
cstdio
> #include <algorithm> using namespace std; int main() { int n;
·
2015-11-12 20:35
HDU
HDU 1718 Rank
#include <
cstdio
> #include <algorithm> #include <string> using namespace std; struct
·
2015-11-12 20:34
rank
HDU 2561 第二小整数
#include <
cstdio
> #include <algorithm> using namespace std; int main() { int n;
·
2015-11-12 20:33
HDU
HDU 2673 shǎ崽 OrOrOrOrz
#include <
cstdio
> #include <algorithm> using namespace std; int main() { int n;
·
2015-11-12 20:32
ror
HDU 2550 百步穿杨
#include <
cstdio
> #include <algorithm> using namespace std; struct arc{ int a;
·
2015-11-12 20:31
HDU
HDU 1050 Moving Tables
#include <
cstdio
> #include <algorithm> int main() { int n; scanf("%d"
·
2015-11-12 20:30
table
HDU 1170 Balloon Comes!
#include <
cstdio
> #include <iostream> using namespace std; int main() { int n;
·
2015-11-12 20:29
com
HDU 2719 The Seven Percent Solution
#include <
cstdio
> #include <cstring> int main() { char s[10000]; while(gets(
·
2015-11-12 20:28
HDU
HDU 2393 Higher Math
#include <
cstdio
> #include <string> using namespace std; void swap(int& a,int&
·
2015-11-12 20:28
Math
HDU 1061 Rightmost Digit
#include <
cstdio
> int main() { int n; scanf("%d",n); while(scanf("
·
2015-11-12 20:27
right
HDU 2104 hide handkerchief
#include <
cstdio
> int gcd(int a,int b) { if (b==0) return(a); else return(gcd(b,(a%
·
2015-11-12 20:25
ide
HDU 1049 Climbing Worm
#include <
cstdio
> int main() { int cnt,h,d,u; while(scanf("%d%d%d",&h
·
2015-11-12 20:25
bing
HDU 1720 A+B Coming
#include <string> #include <
cstdio
> #include <iostream> using namespace std; int
·
2015-11-12 20:24
com
codeforces C. Devu and Partitioning of the Array
1 #include <
cstdio
> 2 #include <cstring> 3 #include <vecto
·
2015-11-12 20:16
codeforces
codeforces C. Ryouko's Memory Note
1 #include <
cstdio
> 2 #include <iostream> 3 #incl
·
2015-11-12 20:15
codeforces
codeforces C. k-Tree
1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm> 4 #include <
·
2015-11-12 20:14
codeforces
codeforces C. Prime Swaps
尽可能的找大的素数,从1的位置向右逐步的调整,每一个位置最多5次,有的位置不到5次; 1 #include <
cstdio
> 2 #include <cstring>
·
2015-11-12 20:13
codeforces
codeforces B. Prison Transfer
题意:输入n,t,c,再输入n个数,然后问有多少个连续区间内的最大值小于等于t; 1 #include <
cstdio
> 2 #include <cstring>
·
2015-11-12 20:12
codeforces
codeforces C. Sereja and Swaps
1 #include <
cstdio
> 2 #include <iostream> 3 #include <cs
·
2015-11-12 20:11
codeforces
hdu 5063 Operation the Sequence
1 #include <
cstdio
> 2 #include <iostream> 3 #include <cstring> 4 #include <
·
2015-11-12 20:11
sequence
hdu 5056 Boring count
1 #include <
cstdio
> 2 #include <cst
·
2015-11-12 20:10
count
codeforces C. Booking System
1 #include <
cstdio
> 2 #include <cstring> 3 #include <algorithm> 4 #def
·
2015-11-12 20:09
codeforces
上一页
43
44
45
46
47
48
49
50
下一页
按字母分类:
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
其他