Submission #554036

#TimeUsernameProblemLanguageResultExecution timeMemory
554036morasha3Combo (IOI18_combo)C++17
10 / 100
53 ms552 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int N) { string p = ""; int prev=0,cur=0; for(int i=0;i<N;i++) { p+='A'; cur=press(p); if(cur==prev) { p[p.size()-1]='B'; cur=press(p); if(cur==prev) { p[p.size()-1]='X'; cur=press(p); if(cur==prev) { p[p.size()-1]='Y'; cur=prev+1; } } } prev=cur; } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...