제출 #1142074

#제출 시각아이디문제언어결과실행 시간메모리
1142074orzdraiduwu콤보 (IOI18_combo)C++20
10 / 100
19 ms456 KiB
#include "combo.h"
// #include <bits/stdc++.h>
#include <iostream>


using namespace std;

string guess_sequence(int n) {
  string g = "";
  int k = 0;
  for(int i = 0 ; i < n ; i++) {
    for(char c: {'A', 'B', 'X', 'Y'}) {
      // cout << g << endl;
      g.push_back(c);
      int r = press(g);
      if(r - k == 1) {
        k++;
        break;
      }

      g.pop_back();
    }
  }

  // cout << g << endl << flush;
  return g;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...