제출 #760747

#제출 시각아이디문제언어결과실행 시간메모리
760747NonozeCombo (IOI18_combo)C++17
5 / 100
1 ms208 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; int n; string bruteforce(int empl, string act) { if (empl==n) { if (press(act)==n) return act; return "*"; } empl++; string a=bruteforce(empl, act+"A"); if (a!="*") return a; string b=bruteforce(empl, act+"B"); if (b!="*") return b; string x=bruteforce(empl, act+"X"); if (x!="*") return x; string y=bruteforce(empl, act+"Y"); if (y!="*") return y; return "*"; } string guess_sequence(int temp) { n=temp; return bruteforce(0, ""); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...