제출 #776308

#제출 시각아이디문제언어결과실행 시간메모리
776308Durza42콤보 (IOI18_combo)C++14
10 / 100
48 ms464 KiB
#include <iostream> #include <vector> #include "combo.h" #define endl '\n' #define ll long long int using namespace std; string guess_sequence(int N) { vector<char> LETTERS = { 'A', 'B', 'X', 'Y' }; string S = "."; for(auto&& l : LETTERS) { S[0] = l; if(press(S) > 0) break; } for(int i = 1 ; i < N ; ++i) { S += "."; for(auto&& l : LETTERS) { if(l == S[0]) continue; S[i] = l; if(press(S) == i + 1) break; } } return S; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...