| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 1132233 | bobthescience | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB | 
#include<bits/stdc++.h>
#include "combo.h"
using namespace std;
std::string guess_sequence(int N) {
  string p = "";
  int r = 1, ord;
  vector<char> add = {'A', 'B', 'X', 'Y'};
  for (int i = 0;i < 4;i++) {
    if (press("" + add[i])) {
      add.erase(add.begin() + i);
      break;
  }
  while (r < N) {
    for (char c :add) {
      if (press(p + c) > r) {
        r++;
        p += c;
        break
      }
    }
  }
  return p;
}
