제출 #338200

#제출 시각아이디문제언어결과실행 시간메모리
338200zggf콤보 (IOI18_combo)C++14
10 / 100
84 ms552 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int N) { /* char firstLetter; if(press("X")) firstLetter = 'X'; if(press("Y")) firstLetter = 'Y'; if(press("A")) firstLetter = 'A'; if(press("B")) firstLetter = 'B'; */ string wyn; for(int i = 0; i < N; i++){ if(press(wyn+"A")-wyn.size()>0) {wyn.push_back('A'); continue;} if(press(wyn+"B")-wyn.size()>0) {wyn.push_back('B'); continue;} if(press(wyn+"X")-wyn.size()>0) {wyn.push_back('X'); continue;} if(press(wyn+"Y")-wyn.size()>0) {wyn.push_back('Y'); continue;} } return wyn; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...