Submission #295214

#TimeUsernameProblemLanguageResultExecution timeMemory
295214re404dCombo (IOI18_combo)C++11
10 / 100
77 ms580 KiB
#include "combo.h" using namespace std; string guess_sequence(int N) { string s = "", temp; string l = "ABXY"; int i, v, j; for (i = 1; i<=N; i++) { for (j = 0; j<4; j++) { temp = s + l[j]; v = press(temp); if (v == i) { s = s + l[j]; break; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...