https://www.acmicpc.net/problem/25516코드#include #include using namespace std;#define FASTIO ios::sync_with_stdio(false);cin.tie(NULL);#define MAX 100001int n, k, ans;vector v[MAX];int cnt[MAX];void dfs(int now, int ncnt) { if (ncnt > k) return; ans += cnt[now]; for (int i = 0; i > n >> k; for (int i = 0, s, e; i > s >> e; v[s].push_back(e); } for (int i = 0; i > cnt[i]; dfs(0, 0); cout 설명트리를 생..