제출 #855683

#제출 시각아이디문제언어결과실행 시간메모리
855683IS_Rushdi콤보 (IOI18_combo)C++17
10 / 100
41 ms1456 KiB
#include "combo.h"
using namespace std;

string guess_sequence(int N) {
  string p = "";
  string x = "ABXY";
  string S = ""; 
  for(int i = 1; i <= N; i++){
    for(char z : x){
        p = S + z;
        int coin = press(p);
        if(coin == i){
            S+=z;
            break;
        }
    }
  }
  return S;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...