Submission #1084662

#TimeUsernameProblemLanguageResultExecution timeMemory
1084662AliyyiakbarCombo (IOI18_combo)C++17
5 / 100
56 ms1116 KiB
#include "bits/stdc++.h" #include "combo.h" using namespace std; string guess_sequence(int n) { int d = 0; string res = ""; set<string>st = {"A","B","X","Y"}; for (int i = 0; i <= n; ++i) { for (auto x : st) { if (press(res + x) > i) { res += x; break; } } } return res; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:7:9: warning: unused variable 'd' [-Wunused-variable]
    7 |     int d = 0;
      |         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...