Submission #648230

#TimeUsernameProblemLanguageResultExecution timeMemory
648230KenparCombo (IOI18_combo)C++17
10 / 100
63 ms452 KiB
//OJUZ grind baby #include <bits/stdc++.h> #include <combo.h> using namespace std; #define ll long long char word[] = {'A', 'B', 'X', 'Y'}; string guess_sequence(int N){ string ans = ""; for(int cur = 0; cur < N; cur++){ for(int i = 0; i < 4; i++){ string temp = ans + word[i]; if(temp.length() > 1 && temp[0] == word[i]){ continue; } int a = press(temp); if(a == cur + 1){ ans = temp; break; } } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...