제출 #370853

#제출 시각아이디문제언어결과실행 시간메모리
370853rc_catunta콤보 (IOI18_combo)C++14
5 / 100
2 ms272 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...