# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
705895 | mseebacher | Combo (IOI18_combo) | C++17 | 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.
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
string guess_sequence(int n) {
string s = "";
while(s.length() != N){
if(press(s+"A") == s.length()+1)){
s += "A";
}else if(press(s+"B") == s.length()+1)){
s += "B";
}else if(press(s+"X") == s.length()+1)){
s += "X";
}else{
s += "Y";
}
}
return s;
}