洛谷1723 高手过愚人节
// 洛谷1723 高手过愚人节.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<string> #include<cstring> #pragma warning(disable:4996) using namespace std; …
洛谷1002优化算法_加法定理
// 洛谷1002优化算法_加法定理.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; int main() { int bx, by, cx, cy; long long f[25][25]; cin >> bx >> by…
洛谷1002深搜dfs
// 洛谷1002深搜dfs.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; #define N 25 int s[N][N]; int x1, x2, h1, h2; long sum = 0; void creat(in…
洛谷_P1017 进制转换
// 洛谷_P1017 进制转换.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; int main() { char ch[1000]; int n, N,i=0; cin >> n >> N; while (n!=0) {…
构造哈夫曼树的哈夫曼算法
#include "stdafx.h" #include "stdio.h" #define maxval 100.0 #pragma warning(disable:4996) typedef struct{ float weight; int parent, lchild, rchild; }hufmtree; void Huffman(huf…
zoj3124 Celebrity jeopardy
// zoj3124 Celebrity jeopardy.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<string> using namespace std; int main() { string str1; while (getli…
zoj2812 Quicksum 数学题
// zoj2812 Quicksum 数学题.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<cstring> using namespace std; int main() { char ch[256]; while (1) { int …
ZOJ2176 SpeedLimit 数学题
// ZOJ2176 SpeedLimit 数学题.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; int main() { int N,i; cin >> N; while (N!=- 1) { int sum = 0; …
ZOJ-1948-团队队列
// ZOJ-1948-团队队列.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<string> #include<map> #include<queue> using namespace std; const int maxt …
ZOJ-1405Tanning Salon
// ZOJ-1405Tanning Salon.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<string> #include<string.h> using namespace std; int main() { int n; c…