Submission #305467

#TimeUsernameProblemLanguageResultExecution timeMemory
305467kylych03Combo (IOI18_combo)C++14
5 / 100
1 ms200 KiB
#include "combo.h" #include <bits/stdc++.h> //#include "grader.cpp" using namespace std; string guess_sequence(int N) { string p = ""; if( press("A")==1) p="A"; else if( press("B")==1) p="B"; else if( press("X")==1) p="X"; else if( press("Y")==1) p="Y"; /////// if( press( (p+"A") )==2) p+="A"; else if( press((p+"B"))==2) p+="B"; else if( press((p+"X"))==2) p+="X"; else if( press((p+"Y"))==2) p+="Y"; if( press( (p + "A"))==3) p+="A"; else if( press((p+"B"))==3) p+="B"; else if( press((p+"X"))==3) p+="X"; else if( press((p+"Y"))==3) p+="Y"; //////// return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...