Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2018
906
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n;
  8.     cin >> n;
  9.     if(n<=5)
  10.         cout << -1 << endl;
  11.     else
  12.     {
  13.         cout << "1 2\n1 3\n1 4\n2 5\n2 6\n";
  14.         int i;
  15.         for(i=7;i<=n;i++)
  16.             cout << "1 "<< i << endl;
  17.     }
  18.     for(int i=2;i<=n;i++)
  19.         cout << "1 "<< i << endl;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement