제출 #1142129

#제출 시각아이디문제언어결과실행 시간메모리
1142129alilou콤보 (IOI18_combo)C++20
0 / 100
0 ms408 KiB
#include<bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int n){ const int m=4; string buttons="ABXY"; string s=""; for(int i ; i<n ; i++){ for(int j ; i<m-1 ; i++){ int lenght=press(s+buttons[j]); if (lenght==i+1){ s+=buttons[j]; break; } if (s.size()!=i+1)s+=buttons[m-1]; } s+=buttons[m-1]; } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...