Submission #846645

#TimeUsernameProblemLanguageResultExecution timeMemory
846645HaciyevAlikCombo (IOI18_combo)C++14
10 / 100
40 ms1488 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int N) { string p=""; int c=0; for(int i=1;i<=N;++i){ string temp=p+'A'; if(press(temp)>c) { p+='A'; ++c; continue; } temp=p+'B'; if(press(temp)>c) { p+='B'; ++c; continue; } temp=p+'X'; if(press(temp)>c) { p+='X'; ++c; continue; } temp=p+'Y'; if(press(temp)>c) { p+='Y'; ++c; continue; } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...