제출 #1129168

#제출 시각아이디문제언어결과실행 시간메모리
1129168PakinDioxide콤보 (IOI18_combo)C++17
5 / 100
30 ms524 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int n) { char a[4] = {'A', 'B', 'X', 'Y'}; string s = ""; while (s.size() < n) { for (int i = 0; i < 4; i++) { string ns = a[i] + s + s + a[i]; if (press(ns) > s.size()) { if (press(a[i] + s) > s.size()) s = a[i] + s; else s = s + a[i]; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...