제출 #313630

#제출 시각아이디문제언어결과실행 시간메모리
313630baibhav26062008콤보 (IOI18_combo)C++14
0 / 100
0 ms200 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int N) { int x = 4; string all = "ABXY"; string s(N,'A'); for(int i=0;i<N;i++) { bool found=false; for(int j=0;j<x;j++) { if (found) break; s[i] = all[j]; cout << press(s) << endl; if (press(s)-1 == i) { found = true; break; } else continue; } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...