Skip to content

Instantly share code, notes, and snippets.

@E869120
Created February 19, 2024 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save E869120/318aee53dceec70ddae8c617651800ed to your computer and use it in GitHub Desktop.
Save E869120/318aee53dceec70ddae8c617651800ed to your computer and use it in GitHub Desktop.
# 入力
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