Submission #963707

#TimeUsernameProblemLanguageResultExecution timeMemory
963707HezovCombo (IOI18_combo)C++17
0 / 100
19 ms684 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...