#include <iostream>
using namespace std;
int main()
{
ios::sync_with_stdio(0), cin.tie(0);
int t;
cin >> t;
while (t--)
{
int n, m, a, b;
cin >> n >> m;
for (int i = 0; i < m; i++)
cin >> a >> b;
cout << n - 1 << '\n';
}
return 0;
}
'코딩테스트 > 백준' 카테고리의 다른 글
[실3] 9711 - 피보나치 (0) | 2025.03.02 |
---|---|
[실4] 2578 - 빙고 (0) | 2025.02.24 |
[실4] 11399 - ATM (0) | 2025.01.31 |
[실3] 16967 - 배열 복원하기 (0) | 2025.01.19 |
[실4] 2217 - 로프 (0) | 2025.01.12 |