답안 #313532

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
313532 2020-10-16T08:32:31 Z IWANTTOGETGOLDINIOI 콤보 (IOI18_combo) C++14
0 / 100
0 ms 200 KB
#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;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 200 KB Wrong Answer: wrong guess.
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 200 KB Output is correct
2 Incorrect 0 ms 200 KB Wrong Answer: wrong guess.
3 Halted 0 ms 0 KB -