| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 95573 | tqbfjotld | Combo (IOI18_combo) | C++14 | 93 ms | 428 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 <string>
using namespace std;
string guess_sequence(int N) {
string moves[4] = {"A","B","X","Y"};
string start;
for (int x = 0; x<4; x++){
if (press(moves[x])==1){
start = moves[x];
break;
}
}
for (int x = 1; x<N; x++){
for (int y = 0; y<4; y++){
if (moves[y][0]!=start[0]){
if (press(start+moves[y])==x+1){
start+=moves[y];
break;
}
}
}
}
return start;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
