제출 #1071651

#제출 시각아이디문제언어결과실행 시간메모리
1071651Rigobertus콤보 (IOI18_combo)C++17
10 / 100
64 ms1104 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 = ""; for (int i=0; i<n; i++) 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...