Submission #256708

#TimeUsernameProblemLanguageResultExecution timeMemory
256708lani1akeaCombo (IOI18_combo)C++17
10 / 100
107 ms452 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; std::string guess_sequence(int N) { string p = ""; int x = 0; while(x < N) { if ( press(p + 'A') > x) { ++x; p += 'A'; continue; } else if ( press(p + 'B') > x) { ++x; p += 'B'; continue; } else if ( press(p + 'X') > x) { ++x; p += 'X'; continue; } else if ( press(p + 'Y') > x) { ++x; p += 'Y'; continue; } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...