Submission #370852

#TimeUsernameProblemLanguageResultExecution timeMemory
370852rc_catuntaCombo (IOI18_combo)C++14
0 / 100
1 ms200 KiB
#include "combo.h" #include <iostream> std::string guess_sequence(int N) { std::string p = ""; std::string S = "X"; if(N==3){ S=""; if(press("A")) S="A"; else if(press("B")) S="B"; else if(press("X")) S="X"; else S="Y"; if(press(S+"A")==2) S=S+"A"; else if(press(S+"B")==2) S=S+"B"; else if(press(S+"X")==2) S=S+"X"; else S=S+"Y"; if(press(S+"A")==3) S=S+"A"; else if(press(S+"B")==3) S=S+"B"; else if(press(S+"X")==3) S=S+"X"; else S=S+"Y"; } std::cout<<"Devolviendo "<<S<<std::endl; return S; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...