Submission #1128589

#TimeUsernameProblemLanguageResultExecution timeMemory
1128589ElayV13Combo (IOI18_combo)C++20
10 / 100
21 ms460 KiB
#include "combo.h" #include "bits/stdc++.h" //g++ combo.cpp grader.cpp -o combo using namespace std; string guess_sequence(int n){ string ans = ""; vector < int > c = {'A' , 'B' , 'X' , 'Y'}; for(int i = 0;i < n;i++){ for(int j = 0;j < 4;j++){ if(i >= 1){ if(c[j] == ans[0]) continue; } string cc = ans; cc += c[j]; if(press(cc) == cc.size()){ ans = cc; break; } } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...