Submission #1085031

#TimeUsernameProblemLanguageResultExecution timeMemory
1085031StaheosCombo (IOI18_combo)C++14
10 / 100
47 ms1440 KiB
#include <string> #include "combo.h" using namespace std; string guess_sequence(int N) { string p = ""; for (int i = 0; i < N; i++) { p = p + 'A'; int m = press(p); if (m > i) { continue; } p[i] = 'B'; m = press(p); if (m > i) { continue; } p[i] = 'X'; m = press(p); if (m > i) { continue; } p[i] = 'Y'; } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...