# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1215113 | nataliaa | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include "combo.h"
using namespace std;
string guess_sequence(int N) {
string p = "";
char c[4] = {'A', 'B', 'X', 'Y'};
for(int j = 0; j < 3; j++) {
for(int i = 0; i < 4; i++) {
int ok = press(c[i]);
if(ok) {
p+=c[i];
break;
}
}
}
return p;
}