03 2018 档案
摘要:#include const int MAXN=1e5+10; #define ll long long using namespace std; int ch[MAXN][2],res[MAXN],pre[MAXN];bool rt[MAXN]; ll size1[MAXN],size[MAXN];int st[MAXN],tp; typedef struct node{ int u,v;l...
阅读全文
摘要:COT - Count on a tree #tree #tree You are given a tree with N nodes. The tree nodes are numbered from 1 to N. Each node has an integer weight. We will
阅读全文

浙公网安备 33010602011771号