# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
922524 | salmon | Painting Walls (APIO20_paint) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
int it = 0;
int it1 = 0;
vector<int> temp;
if(contract[i].size() != 0 && contract[i][0] == 0) temp.push_back(0);
while(it < v.size() && it1 < contract[i].size()){
if(v[it] + 1 == contract[i][it1]){
if(v[it] != M - 1) temp.push_back(v[it] + 1);
else{
can[i] = true;
}
}
if(v[it] + 1 <= contract[i][it1]){
it++;
}
else{
it1++;
}
}