제출 #286987

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
2869872020-08-31 08:29:08infinite_iq콤보 (IOI18_combo)C++14
100 / 100
41 ms692 KiB
#include <bits/stdc++.h>
using namespace std ;
#include "combo.h"
int n ;
string ans , but = "ABXY" , ret ;
int query ( string s ) {
return press (s) ;
}
void solve () {
string crnt = "" ;
for ( int i = 0 ; i < 3 ; i ++ ) {
crnt += ans ;
crnt += ret [0] ;
crnt += ret [i] ;
}
crnt += ans ;
crnt += ret [1] ;
int x = query ( crnt ) ;
x -= ans .size () ;
if ( x == 0 ) {
ans += ret [2] ;
}
if ( x == 1 ) {
ans += ret [1] ;
}
if ( x == 2 ) {
ans += ret [0] ;
}
}
string guess_sequence ( int N ) {
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...