https://www.acmicpc.net/problem/1325 > n >> m; for (int i = 0; i > a >> b; adj[b].push_back(a); //그래프를 생성한다 } for (int i = 1; i