제출 #1369341

#제출 시각아이디문제언어결과실행 시간메모리
1369341norrawichzzz콤보 (IOI18_combo)C++20
30 / 100
8 ms492 KiB
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;

string guess_sequence(int N) {
  string S = "";
  for (int i = 0; i < N; ++i) {
    string S1 = S+'A'+S+'B';
    if (press(S1) >= i+1) {
      string S3 = S+'A';
      if (press(S3) == i+1) S+='A';
      else S+='B';
    }
    else {
      string S2 = S+'X';
      if (press(S2) == i+1) S+='X';
      else S+='Y';
    }
  }
  return S;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…