摘要:
带权并查集#include using namespace std;int f[50005],q,w,e,d[50005],ans=0,n,k;int find(int x){ if(x==f[x]) return x; int fx=find(f[x]); d[... 阅读全文
摘要:
题目实在是太难懂了,我翻译了一下。。。STAMPS Description Have you done any Philately lately? 你最近有没有集邮?You have been hired by the Ruritanian Postal Service (RPS... 阅读全文