Submission #154307

#TimeUsernameProblemLanguageResultExecution timeMemory
154307andreiomdCombo (IOI18_combo)C++17
5 / 100
3 ms204 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence (int N) { char V[4] = {'A', 'B', 'X', 'Y'}; if(N == 3) { for(int i = 1; i <= 4; ++i) for(int j = 1; j <= 4; ++j) for(int k = 1; k <= 4; ++k) if(i != j && i != k) { string ans; if(!ans.empty()) ans.clear(); ans.push_back(V[i - 1]); ans.push_back(V[j - 1]); ans.push_back(V[k - 1]); if(press(ans) == 3) return ans; } } else { } return "A"; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...