Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n, m;
  8. cin >> n >> m;
  9. if (n != m) {
  10. cout << "Impossible";
  11. return 0;
  12. }
  13. cout << "Possible" << '\n';
  14. for (int i = 1; i < n; i++) {
  15. cout << i << ' ' << i + 1 << '\n';
  16. }
  17. cout << 1 << ' ' << n;
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement