摘要: 1593E - Gardener and Tree 题意:给出一棵树,问对其进行k次操作还剩多少个结点, 思路:建立邻接表,每次出入度为1的点,注意要进行1个节点的特判 #include<bits/stdc++.h> using namespace std; const int maxn = 4e5 阅读全文
posted @ 2021-11-01 18:43 spzjc 阅读(66) 评论(0) 推荐(0)