제출 #477045

#제출 시각아이디문제언어결과실행 시간메모리
477045Genius3435콤보 (IOI18_combo)C++17
10 / 100
90 ms540 KiB
#include "combo.h"

#include <bits/stdc++.h>
using namespace std;

const int t = chrono::high_resolution_clock::now().time_since_epoch().count();

inline int gen(int i) {
	static mt19937 rng = mt19937(t%10000/10);
	return rng() % i;
}

string guess_sequence(int N) {
	string cur = ""; cur.reserve(N);
	for (int i = 0; i < N; ++i) {
		char s[5] = "ABXY";
		random_shuffle(s, s+4, gen);
		for (const char c: s) {
			cur += c;
			if (press(cur) == i+1) break;
			cur.pop_back();
		}
	}
	return cur;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...