제출 #588680

#제출 시각아이디문제언어결과실행 시간메모리
588680shezitt콤보 (IOI18_combo)C++14
10 / 100
65 ms556 KiB
#include "combo.h"
#include <bits/stdc++.h>
#define dbg(x) cerr << #x << ": " << x << endl;
#define raya cerr << "======================" << endl;

using namespace std;

string guess_sequence(int N) {
	string s = "";
	string aux = "ABXY";
	for(int i=0; i<N; ++i){
		for(auto c : aux){
			if(i > 0 && c == s[0]){
				continue;
			}
			s += c;
			int p = press(s);
			if(p == i+1){
				break;
			}
			s.pop_back();
		}
	}
	return s;
}

#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...