Submission #232256

#TimeUsernameProblemLanguageResultExecution timeMemory
232256pere_gilCombo (IOI18_combo)C++14
0 / 100
1 ms200 KiB
#include <iostream> #include "combo.h" using namespace std; string guess_sequence(int N) { string s; string re; if(press("A")>0){ s="A"; re="BXY"; } else{ if(press("B")>0){ s="B"; re="AXY"; } else{ if(press("X")>0){ s="X"; re="ABY"; } else{ s="Y"; re="ABX"; } } } for(int i=1;i<=N;i++){ if(press(s+re[0])>0){ s+=re[0]; } else{ if(press(s+re[1])>0){ s+=re[1]; } else{ s+=re[2]; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...