# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
139696 | ekrem | Combo (IOI18_combo) | 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.
t i = 1; i <= 4; i++){
if(i == ilk)continue;
x[++m] = h[i];
}
// cout << n << " " << ilk << " " << s << endl;
for(int i = 2; i <= n - 1; i++){
string sor = "";
sor += s;sor += x[1];sor += x[1];
sor += s;sor += x[1];sor += x[2];
sor += s;sor += x[1];sor += x[3];
sor += s;sor += x[2];
// cout << n << " " << sor.size() << " " << sor << endl;
int ans = press(sor);
if(ans == i)
s += x[2];
else if(ans == i + 1)
s += x[1];
else
s += x[3];
}
for(int i = 1; i <= 3; i++){
if(press(s + x[i]) == n){
s += x[i];
break;
}
}
return s;
}