Submission #963922

#TimeUsernameProblemLanguageResultExecution timeMemory
963922MardonbekhazratovCombo (IOI18_combo)C++17
0 / 100
1 ms500 KiB
#include "combo.h" using namespace std; string guess_sequence(int N) { string p = ""; int c=0; while(true){ if(press(p+"A")==c+1) p+="A"; else if(press(p+"B")==c+1) p+="B"; else if(press(p+"X")==c+1) p+="X"; else if(press(p+"Y")==c+1) p+"Y"; else break; c++; } while(c!=N){ if(press(p+"A")==c+1) p+="A"; else if(press(p+"B")==c+1) p+="B"; else if(press(p+"X")==c+1) p+="X"; else p+="Y"; c++; } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...