Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- using ll = long long;
- int main()
- {
- ll t, z = 0;
- cin >> t;
- ll bg = 1, x; // bg ------>x
- while (t-- > 0)
- {
- cin >> x;
- for (ll i = bg; i < x; i++)
- {
- cout << i << '\n';
- z = 1;
- }
- bg = x + 1;
- }
- if (z == 0)
- {
- cout << "good job" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment