
刘汝佳
fantaticmen
如果有讲的不详细的或者错误的可以加鹅细聊+934591874
展开
-
Uva 514 刘汝佳141页
There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It was possible to原创 2017-08-05 20:02:59 · 423 阅读 · 0 评论 -
51nod 1212 模板
N个点M条边的无向连通图,每条边有一个权值,求该图的最小生成树。 Input 第1行:2个数N,M中间用空格分隔,N为点的数量,M为边的数量。(2 <= N <= 1000, 1 <= M <= 50000) 第2 - M + 1行:每行3个数S E W,分别表示M条边的2个顶点及权值。(1 <= S, E <= N,1 <= W <= 10000) Output 输出最小生成树的所有边原创 2017-08-05 20:04:21 · 268 阅读 · 0 评论 -
uva 400 Unix ls 127页
#include <iostream> #include <cstdio> #include <algorithm> #include <string> using namespace std; const int maxcol=60; const int maxn=100+5; string filename[maxn]; void print(string x,int len,char str)原创 2017-08-05 20:06:08 · 338 阅读 · 0 评论 -
uva 136 120页
#include <queue> #include <cstdio> #include <iostream> #include <algorithm> #include <set> #define ll long long using namespace std; int a[3]={2,3,5}; int main() { priority_queue<ll ,vector<ll>, g原创 2017-08-05 20:06:47 · 329 阅读 · 0 评论 -
uva 540 117 页
#include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <queue> #include <map> using namespace std; int main() { // freopen("input.txt","r",stdin); int cmt; int c原创 2017-08-05 20:07:38 · 401 阅读 · 0 评论 -
uva 12096 115 页
#include <iostream> #include <cstdio> #include <set> #include <vector> #include <map> #include <stack> #include <algorithm> using namespace std; #define ALL(x) x.begin(),x.end() #define INS(x) insert原创 2017-08-05 20:08:18 · 382 阅读 · 0 评论 -
uva 307 bfs优化剪枝
题目大意:将n节木棒接成m个长度相等的木条,要求木条的长度尽可能的短#include <bits/stdc++.h>using namespace std; #define LL long long #define LD long double #define SC(t,x) static_cast<t>(x) #define AR(t) vector < t > #define PII pair原创 2017-08-05 20:10:11 · 497 阅读 · 0 评论