# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
477059 | Genius3435 | 콤보 (IOI18_combo) | C++17 | 1 ms | 200 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "combo.h"
#include <algorithm>
#include <chrono>
#include <random>
#include <string>
#include <ctime>
using namespace std::string_literals;
const int t = std::chrono::high_resolution_clock::now().time_since_epoch().count();
inline int gen(int i) {
static std::mt19937 rng = std::mt19937(t%10000/10);
return rng() % i;
}
std::string guess_sequence(int N) {
std::string cur;
for (const char c: "ABXY") {
if (press(cur = c)) break;
}
std::string poss = "ABXY"; poss.erase(poss.find(cur[0]), 1);
const char A = poss[0], B = poss[1], X = poss[2];
printf("A=%c;B=%c;X=%c\n",A,B,X);
while ((int) cur.size()+2 <= N) {
// Let s = cur, A,B,X = poss
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |