#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; vector<int> rec(m, 0); for (int i = 0; i < m; ++i) cin >> rec[i]; vector<int> result(n, 0); result[0] = rec[0]; int count = 1; int index = 1; for (int i = 1; i < ...