[문제 링크] : https://leetcode.com/problems/divide-nodes-into-the-maximum-number-of-groups/#include using namespace std;class Solution {public: int magnificentSets(int n, vector>& edges) { vector> graph(n); for(auto& edge : edges) { int u = edge[0] - 1; int v = edge[1] - 1; graph[u].push_back(v); graph[v].push_back(u); } vect..