Submission #1023234

#TimeUsernameProblemLanguageResultExecution timeMemory
1023234LolkasMeepCombo (IOI18_combo)C++14
10 / 100
44 ms848 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; // int press(string s); string guess_sequence(int N){ string s = ""; string chrs = "ABXY"; for(int n = 1; n <= N; n++){ for(int i = 0; i < 4; i++){ if(n > 1 && s[0] == chrs[i]) continue; if(press(s + chrs[i]) == n){ s += chrs[i]; break; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...