제출 #480322

#제출 시각아이디문제언어결과실행 시간메모리
480322omgCombo (IOI18_combo)C++17
10 / 100
108 ms400 KiB
#include<bits/stdc++.h>
#include "combo.h"
using namespace std; 
string guess_sequence(int N) {
  string R=""; 
  int comboCur=0; 
  string target="ABXY"; 
  for (int i=0;i<N;i++) {
    for (int j=0;j<4; j++) {
      R.push_back(target[j]); 
      if (press(R) > comboCur) break; 
      R.pop_back(); 
    }
    comboCur++; 
  }
  return R; 
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...