摘要:
D - Santa Claus 2 map<int,set> E - Snowflake Tree 开始想到枚举中心点,x=度数,y=min儿子度数-1,其余全要删除,删除越少留下越多,留下1+x+xy,删n-(1+x+xy) 样例1告诉我们可以删除某个子树,这样还是y=min儿子度数-1,就排序, 阅读全文
posted @ 2025-10-29 22:57
arin876
阅读(5)
评论(0)
推荐(0)
摘要:
D - 2x2 Erasing 2 状压 E - Cut in Half 暴力,O(nlogK) #include<bits/stdc++.h> using namespace std; #define endl '\n' #define yes cout << "Yes" << endl #def 阅读全文
posted @ 2025-10-29 22:48
arin876
阅读(5)
评论(0)
推荐(0)

浙公网安备 33010602011771号