# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
527771 | andreiomd | Combo (IOI18_combo) | C++11 | 1 ms | 272 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"
using namespace std;
std::string litere;
char FindFirstLetter () {
int val = press("AB");
if (val >= 1) {
val = press("A");
if (val == 1) return 'A';
else return 'B';
}
val = press("X");
if (val == 1) return 'X';
else return 'Y';
}
int PrimaIntrebare (std::string ans, std::string posibil) {
std::string p;
p = ans + posibil[0] + posibil[2];
p = p + ans + posibil[1] + posibil[2];
p = p + ans + posibil[0] + posibil[0];
return press(p);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |