func_code_string: #include <bits/stdc++.h>   using namespace std;   int k, a[1001], i, j, poz, submisii_interesante, f[1001];   double ecran, fully_tested, n, timp = 1;   struct coada {     int x, y, z;   };   vector<coada> v;   int main() {     cin >> n >> k;     for (i = 1; i <= n; ++i) {       cin >> a[i];       if (k) {         v.push_back({0, a[i], i});         k--;         poz = i + 1;       }     }     while (!v.empty()) {       if (timp > 0 && double(timp) == int(timp)) {         for (size_t i = 0; i < v.size(); ++i) {           v[i].x++;           if (v[i].x == v[i].y) {             fully_tested++;             ecran = round((100 * fully_tested) / n);             v.erase(v.begin() + i, v.begin() + i + 1);             if (poz <= n) {               v.push_back({-1, a[poz], poz});               poz++;             }             i--;           }         }       }       if (double(timp - 0.5) == int(timp - 0.5)) {         for (size_t i = 0; i < v.size(); ++i) {           if (v[i].x + 1 == ecran && ecran) {             f[v[i].z]++;             if (f[v[i].z] == 1) {               submisii_interesante++;             }           }         }       }       timp = timp + 0.5;     }     cout << submisii_interesante;   }   