Submission #565862

#TimeUsernameProblemLanguageResultExecution timeMemory
565862imtiyazrasool92Combo (IOI18_combo)C++17
10 / 100
49 ms420 KiB
#include "combo.h" std::string guess_sequence(int N) { std::string P, possible = "ABXY"; for (int i = 0; i < N; i++) { for (int j = 0; j < (int)possible.size(); j++) { P.push_back(possible[j]); if (press(P) == (i + 1)) { if (i == 0) { possible.erase(possible.begin() + j); } break; } P.pop_back(); } } return P; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...