Submission #963713

#TimeUsernameProblemLanguageResultExecution timeMemory
963713HezovCombo (IOI18_combo)C++17
0 / 100
27 ms428 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; /// 4N solution. string guess_sequence(int N) { string sol = ""; char keys[] = {'A','B','X','Y'}; for(int i = 1;i<=N;i++) { int poz = 0; int len = sol.size(); sol[len] = keys[poz]; while(press(sol)!=i) poz++,sol[len] = keys[poz]; } return sol; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...