BOJ - 9372 - 상근이의 여행

Updated:

import sys

def solution():
    T = int(input())
    for _ in range(T):
        N, M = map(int, sys.stdin.readline().split())
        print(N-1)
        for _ in range(M):
            A, B = map(int, sys.stdin.readline().split())
solution()

https://www.acmicpc.net/problem/9372

Categories:

Updated:

Leave a comment