![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UVA
lemonoil
竞赛党一枚
展开
-
UVA 11987 Where is the Marble? [排序水题]
题目传送门不知道什么时候做的排序水题,感觉还挺有趣的。#include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #include<cmath> using namespace std; int a[10005],m,n,cas,ans; inline long long read(){ static c原创 2017-07-11 07:55:29 · 351 阅读 · 0 评论 -
UVA 11987 Almost Union-Find [并查集]
题目传送门并查集裸题,全当练手#include<cstdio> #include<string> #include<iostream> #include<algorithm> using namespace std; const int MAXN = 100010; int n,m; int father[MAXN]; int sum[MAXN],num[MAXN]; template<class原创 2017-07-10 11:40:30 · 232 阅读 · 0 评论