제출 #470328

#제출 시각아이디문제언어결과실행 시간메모리
470328knicked콤보 (IOI18_combo)C++17
10 / 100
102 ms544 KiB
#include <bits/stdc++.h>

#include <combo.h>

using namespace std;

string guess_sequence(int n) {
  string s = "";   
  for (int i = 0; i < n; i++) {
    for (char c : "ABXY") {
      if (press(s + c) == i + 1) {
        s += c;
        break;
      }
    }
  }
  return s;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...