제출 #500038

#제출 시각아이디문제언어결과실행 시간메모리
500038LucaIlie콤보 (IOI18_combo)C++17
10 / 100
65 ms536 KiB
#include <iostream> #include "combo.h" using namespace std; string guess_sequence( int n ) { int i; string ans; for ( i = 1; i <= n; i++ ) { if ( press( ans + 'A' ) == i ) ans += 'A'; else if ( press( ans + 'B' ) == i ) ans += 'B'; else if ( press( ans + 'X' ) == i ) ans += 'X'; else ans += 'Y'; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...