-
-
Save E869120/1ac9446bda7e56d645e36b6ea089198b 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
#include <iostream> | |
using namespace std; | |
long long N; | |
long long A[59]; | |
long long B[59]; | |
int main() { | |
// Step 1. 入力 | |
cin >> N; | |
for (int i = 1; i <= N; i++) cin >> A[i] >> B[i]; | |
// Step 2. 出力 | |
cout << N - 1 << endl; | |
for (int i = 1; i <= N - 1; i++) { | |
cout << 1 << " " << i + 1 << endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment