Submission #554278

#TimeUsernameProblemLanguageResultExecution timeMemory
554278n0sk1llCombo (IOI18_combo)C++14
30 / 100
52 ms736 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int n) { string s="",p; for (int i=0;i<n;i++) { p=s+"X"+s+"Y"; if (press(p)>i) { p=s+"X"; if (press(p)>i) s+='X'; else s+='Y'; } else { p=s+"A"; if (press(p)>i) s+='A'; else s+='B'; } } //cout<<s<<endl; return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...