제출 #101611

#제출 시각아이디문제언어결과실행 시간메모리
101611lolicon콤보 (IOI18_combo)C++14
30 / 100
67 ms428 KiB
#include "combo.h" #include<algorithm> std::string guess_sequence(int N){ std::string s, p, c = {"ABXY"}; int i,j; for(i=0;i<3;i++){ if(press(s+c[i]) == 1) break; } s += c[i]; std::swap(c[3],c[i]); int coin = 1; for(i=1;i<N;i++){ for(j=0;j<2;j++){ if(press(s+c[j]) == coin+1) break; } s+=c[j]; coin++; } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...