Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define ll long long
- using namespace std;
- const int N = 1e5 + 5;
- int n, m;
- int b[N];
- vector<int> ans;
- int main()
- {
- //freopen("in.txt", "r", stdin);
- freopen("RECEPT.inp", "r", stdin);
- freopen("RECEPT.out", "w", stdout);
- ios_base::sync_with_stdio(false);
- cin.tie(NULL); cout.tie(NULL);
- cin >> n >> m;
- for(int i = 1; i <= m; ++i)
- cin >> b[i];
- for(int i = 1; i <= m; ++i) {
- for(int j = 1; j <= b[i] - b[i-1]; ++j)
- cout << i << ' ';
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment