Submission #299523

#TimeUsernameProblemLanguageResultExecution timeMemory
299523square1001Combo (IOI18_combo)C++14
30 / 100
61 ms456 KiB
#include "combo.h" #include <string> #include <iostream> using namespace std; std::string guess_sequence(int N) { string current = ""; for(int i = 0; i < N; ++i) { int g1 = press(current + "A" + current + "B"); int g2 = press(current + "A" + current + "X"); if(g1 != i && g2 != i) current += "A"; if(g1 != i && g2 == i) current += "B"; if(g1 == i && g2 != i) current += "X"; if(g1 == i && g2 == i) current += "Y"; } return current; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...