제출 #1071653

#제출 시각아이디문제언어결과실행 시간메모리
1071653Rigobertus콤보 (IOI18_combo)C++17
10 / 100
62 ms952 KiB
#include <iostream> #include <algorithm> #include <vector> #include <map> #include <set> #include <queue> #include <string> //#define int long long #include "combo.h" using namespace std; string guess_sequence(int n) { string c[4] = { "A", "B", "X", "Y"}; string s = ""; while (int(s.size()) < n) { for (int i = 0; i < 4; i++) { string p = s + c[i]; if (press(p) == int(p.size())) { s = p; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...