제출 #234025

#제출 시각아이디문제언어결과실행 시간메모리
234025Binyomin콤보 (IOI18_combo)C++14
0 / 100
1 ms200 KiB
# include <bits/stdc++.h> # include "combo.h" using namespace std ; string guess_sequence(int N) { vector < char > a = { 'A', 'B', 'X', 'Y' } ; char x ; string ans = "", p = ""; int cnt = 0 , ok = 0 ; while( cnt != N ) { for( int i = 0 ; i < 4 ; i ++ ) { if( ok && x == a[i] ) continue ; if( press( ans + a[i] ) ) { cnt ++ ; ans += a[i] ; if( !ok ) x = a[i] ; } } } return ans ; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...