Skip to content

Instantly share code, notes, and snippets.

@E869120
Created February 19, 2024 18:55
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/1ac9446bda7e56d645e36b6ea089198b to your computer and use it in GitHub Desktop.
Save E869120/1ac9446bda7e56d645e36b6ea089198b to your computer and use it in GitHub Desktop.
#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