Submission #142689

#TimeUsernameProblemLanguageResultExecution timeMemory
142689triplem5dsCombo (IOI18_combo)C++14
10 / 100
105 ms448 KiB
#include "combo.h"
//#include "grader.cpp"
#include <bits/stdc++.h>
using namespace std;
char go[] = {'A','B','X','Y'};

std::string guess_sequence(int N) {
  std::string p = "";
  for(int i = 0; i < N; i++){
  	for(int j = 0; j < 4; j++){
  		p.push_back(go[j]);
  		int x = press(p);
  		if(x > i){
  			break;
  		}
  		p.pop_back();
  	}
  }
  return p;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...