제출 #138165

#제출 시각아이디문제언어결과실행 시간메모리
138165CaroLinda콤보 (IOI18_combo)C++14
5 / 100
3 ms200 KiB
#include <bits/stdc++.h> #include "combo.h" #define debug #define lp(i,a,b) for(int i=a;i<b;i++) #define pii pair<int,int> #define ll long long #define ff first #define ss second #define pb push_back #define mk make_pair const int MAXN = 2e3+10 ; using namespace std ; string guess_sequence(int tam) { string p ; p.resize( tam ) ; char c[4] = {'A' , 'B' , 'X' , 'Y'} ; lp(i,0,4) lp(j,0,4) lp(k,0,4) { p[0] = c[i] ; p[1] = c[j] ; p[2] = c[k] ; if( press(p) == tam ) return p ; } return p ; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...