제출 #313810

#제출 시각아이디문제언어결과실행 시간메모리
313810baibhav26062008콤보 (IOI18_combo)C++14
10 / 100
129 ms448 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int N) { const char all[]="ABXY"; int length[N]; string s = ""; for(int i=0;i<N;i++) { for(int j=0;j<4;j++) { length[j]=press(s+all[j]); } for(int j=0;j<4;j++) { if(length[j]==i+1) { s+=all[j]; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...