摘要:
Description 有n个人,要分成m个班,每个班至少1人。每班贡献为$(max min)^2$,求最小贡献值。 $1 include include define N 10010 define M 1010 define mem(x, a) memset(x, a, sizeof x) def 阅读全文
摘要:
Description 给出一棵带边权的树,问有多少对点的距离 include define N 10010 using namespace std; struct node{int v, fr, l;}e[N '9') c = getchar(); while (c = '0' && c len 阅读全文