Advertisement
Josif_tepe

Untitled

Oct 21st, 2022
812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <queue>
  3. using namespace std;
  4.  
  5. int main() {
  6.     int n;
  7.     cin >> n;
  8.    
  9.     pair<int, int> niza[n];
  10.     for(int i = 0; i < n; i++) {
  11.         cin >> niza[i].first >> niza[i].second;
  12.     }
  13.    
  14.     for(int i = 0; i < n; i++) {
  15.         cout << niza[i].first << " " << niza[i].second << endl;
  16.     }
  17.    
  18.    
  19.    
  20.     return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement