摘要:
1593E - Gardener and Tree 题意:给出一棵树,问对其进行k次操作还剩多少个结点, 思路:建立邻接表,每次出入度为1的点,注意要进行1个节点的特判 #include<bits/stdc++.h> using namespace std; const int maxn = 4e5 阅读全文
摘要:
张煊的金箍棒(2) Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 313 Accepted Submission(s): 125 Proble 阅读全文