Submission #899547

#TimeUsernameProblemLanguageResultExecution timeMemory
899547SuPythonyCombo (IOI18_combo)C++17
10 / 100
28 ms1460 KiB
#include <bits/stdc++.h> int press(std::string p); std::string guess_sequence(int n) { std::vector<std::string> c={"A","B","X","Y"}; std::string ans=""; for (int i=0; i<4; i++) { if (press(c[i])) { ans+=c[i]; c.erase(c.begin()+i); break; } } int l=1; while (l<n) { for (auto i: c) { if (press(ans+i)>l) { ans+=i; l++; } } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...