제출 #1124689

#제출 시각아이디문제언어결과실행 시간메모리
1124689ZyadH1콤보 (IOI18_combo)C++17
0 / 100
28 ms408 KiB
#include <bits/stdc++.h> using namespace std; int press(std::string p); string guess_sequence(int N) { string p , buttons = "ABXY"; string ans = ""; while(1){ for(int i = 0 ; i < 4 ;i++){ p = ans; p += buttons[i]; if(p.size() > 1 and buttons[i] == p[0]) continue; int coins = press(p); if(coins == p.size()){ ans = p; } if(coins == N) break; } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...