T3000

Untitled

Jan 18th, 2022
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4. using ll = long long;
  5.  
  6. int main()
  7. {
  8.     ll t, z = 0;
  9.     cin >> t;
  10.     ll bg = 1, x; // bg ------>x
  11.     while (t-- > 0)
  12.     {
  13.         cin >> x;
  14.         for (ll i = bg; i < x; i++)
  15.         {
  16.             cout << i << '\n';
  17.             z = 1;
  18.         }
  19.         bg = x + 1;
  20.     }
  21.     if (z == 0)
  22.     {
  23.         cout << "good job" << endl;
  24.     }
  25.  
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment