- 博客(12)
- 收藏
- 关注
原创 UVA Ordering Tasks
#include <cstdio>#include <cstring>#include <iostream>#include <cmath>using namespace std;const int maxn = 100 + 5;int vis[maxn];//记录访问过程,是否访问过该节点int g[maxn][maxn];int ...
2018-02-26 23:48:35 139
原创 UVA Abbott's Revenge
#include <cstdio>#include <iostream>#include <cstring>#include <string>#include <queue>#include <vector>using namespace std;struct node{ int r, c, dir;//横行...
2018-02-25 23:48:02 170
原创 UVA Quadtrees
#include <cstdio>#include <iostream>#include <cstring>using namespace std;const int len = 32;const int maxn = 1024 + 5;//可能出现的总的涂色方块char s[maxn] = { 0 };//记录读入的字符串char color[l...
2018-02-20 20:27:36 168
原创 UVA The Falling Leaves
#include <cstdio>#include <iostream>#include <cmath>#include <cstring>using namespace std;const int maxn = 200 + 5;int sum[maxn] = { 0 };//统计每一层的总和void build(int p)//递归建...
2018-02-20 17:23:06 143
原创 UVA Tree
#include <cstdio>#include <cmath>#include <iostream>#include <sstream>#include <string>using namespace std;const int maxn = 10000 + 1;int ltree[maxn], rtree[maxn],...
2018-02-19 23:00:48 165
原创 UVA Trees on the level
#include <cstdio>#include <string>#include <cmath>#include <iostream>#include <queue>#include <vector>#include <cstring>using namespace std;const int
2018-02-19 19:39:58 161
原创 UVA Dropping Balls
#include <cstdio>#include <iostream>#include <cmath>#include <string>#include <cstring>using namespace std;const int maxn = 20;const int record = 1 << maxn;...
2018-02-18 23:14:02 121
原创 UVA Updating a Dictionary
#include <cstdio>#include <string>#include <map>#include<sstream>#include <cmath>#include <iostream>#include <cstring>using namespace std;char record[
2018-02-18 21:56:11 150
原创 UVA Symmetry
#include <cstdio>#include <iostream>#include <algorithm>#include <set>#include <cmath>using namespace std;struct node//集合中定义结构体{ int x, y; bool operator<(cons...
2018-02-11 16:38:14 177
原创 UVA Team Queue 题解
#include <cstdio>#include <iostream>#include <algorithm>#include <map>#include <queue>using namespace std;const int maxn = 1010;int main(){ int t; int case1 = 0...
2018-02-09 13:32:28 173
原创 UVA Ananagrams题解
#include <cstdio>#include <iostream>#include <algorithm>#include <string>#include <vector>#include <map>using namespace std;vector<string>words;map&am
2018-02-09 10:04:39 163
原创 UVA Andy's First Dictionary
#include <cstdio>#include <iostream>#include <set>#include <sstream>using namespace std;set<string>dic;int main(){ string s, record; while (cin >> s) { ...
2018-02-08 17:34:27 122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人