제출 #95571

#제출 시각아이디문제언어결과실행 시간메모리
95571shenxy콤보 (IOI18_combo)C++11
10 / 100
112 ms412 KiB
#include "combo.h" #include <string> #include <algorithm> using namespace std; string guess_sequence(int N) { string p = ""; for (int i = 1; i <= N; ++i) { p += "A"; int K = press(p); if (K < i) { p.pop_back(); p += "B"; } else continue; K = press(p); if (K < i) { p.pop_back(); p += "X"; } else continue; K = press(p); if (K < i) { p.pop_back(); p += "Y"; } else continue; } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...