제출 #313532

#제출 시각아이디문제언어결과실행 시간메모리
313532IWANTTOGETGOLDINIOI콤보 (IOI18_combo)C++14
0 / 100
0 ms200 KiB
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)

string guess_sequence(int N) {
  string possible = "ABXY";
  REP(i,N){
    int nxtguess = press("ABXY");
    if (nxtguess == 3) {
      possible = "ABX";
    } 
    if (nxtguess == 2) {
      possible = "AB"; 
    }
    if (nxtguess == 1) {
      possible = "A";
    }
  }
  return possible;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...