Submission #232261

#TimeUsernameProblemLanguageResultExecution timeMemory
232261jhtanCombo (IOI18_combo)C++14
0 / 100
1 ms200 KiB
#include "combo.h" #include <iostream> using namespace std; std::string guess_sequence(int N) { string p, s = ""; // 5 points /* if (press("A") == 1) s += "A"; else if (press("B") == 1) s += "B"; else if (press("X") == 1) s += "X"; else if (press("Y") == 1) s += "Y"; if (press(s + "A") == 2) s += "A"; else if (press(s + "B") == 2) s += "B"; else if (press(s + "X") == 2) s += "X"; else if (press(s + "Y") == 2) s += "Y"; if (press(s + "A") == 3) s += "A"; else if (press(s + "B") == 3) s += "B"; else if (press(s + "X") == 3) s += "X"; else if (press(s + "Y") == 3) s += "Y"; */ // more points :0 for(int i=0; i<N; i++) { if (press("A") == i+1) s += "A"; else if (press("B") == i+1) s += "B"; else if (press("X") == i+1) s += "X"; else if (press("Y") == i+1) s += "Y"; } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...