Submission #700872

#TimeUsernameProblemLanguageResultExecution timeMemory
700872mychecksedadCombo (IOI18_combo)C++17
5 / 100
1 ms244 KiB
#include <bits/stdc++.h>
using namespace std;

int press(std::string p);

string guess_sequence(int N){
	string s[36] = {
		"ABB",
		"ABX",
		"ABY",
		"AXB",
		"AXX",
		"AXY",
		"AYB",
		"AYX",
		"AYY",
		"BAA",
		"BAX",
		"BAY",
		"BXA",
		"BXX",
		"BXY",
		"BYA",
		"BYX",
		"BYY",
		"XAA",
		"XAB",
		"XAY",
		"XBA",
		"XBB",
		"XBY",
		"XYA",
		"XYB",
		"XYY",
		"YAA",
		"YAB",
		"YAX",
		"YBA",
		"YBB",
		"YBX",
		"YXA",
		"YXB",
		"YXX"
	};
	for(int i = 0; i < 36; ++i){
		int x = press(s[i]);
		if(x == 3)
			return s[i];
	}
	return "";
}

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