Submission #1213556

#TimeUsernameProblemLanguageResultExecution timeMemory
1213556atillamaCombo (IOI18_combo)C++20
10 / 100
19 ms456 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int N) { string x = ""; char c[] = {'A', 'B', 'X', 'Y'}; int i = 0; while(x.size() != N){ int k = press(x + c[i]); if(k == x.size() + 1){ x += c[i]; i = 0; }else{ i++; if(x.size() && c[i] == x[0]){ i++; } } } return x; } /* g++ grader.cpp combo.cpp -o run.exe .\run.exe */ //atilla
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...