Submission #1023229

#TimeUsernameProblemLanguageResultExecution timeMemory
1023229LolkasMeepCombo (IOI18_combo)C++14
0 / 100
0 ms596 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 chrs; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...