제출 #713074

#제출 시각아이디문제언어결과실행 시간메모리
713074onepunchac168콤보 (IOI18_combo)C++14
30 / 100
65 ms576 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; typedef int ll; std::string guess_sequence(int N) { string s=""; for (int i=1;i<=N;i++) { ll pp=press(s+"A"+s+"B"); if (pp>=i) { ll aa=press(s+"A"); if (aa>=i) { s+="A"; } else s+="B"; } else { ll aa=press(s+"X"); if (aa>=i) { s+="X"; } else s+="Y"; } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...