-
-
Save E869120/318aee53dceec70ddae8c617651800ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 入力 | |
N = int(input()) | |
A = [0] * N | |
B = [0] * N | |
for i in range(N): | |
A[i], B[i] = map(int, input().split()) | |
# 出力 | |
print(N - 1) | |
for i in range(2, N + 1): | |
print("1 " + str(i)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment