Submission #411108

#TimeUsernameProblemLanguageResultExecution timeMemory
411108Dipto_DebdipCombo (IOI18_combo)C++14
0 / 100
0 ms200 KiB
#include "combo.h" #include "bits/stdc++.h" using namespace std; #define ll long long int std::string guess_sequence(int N) { std::string p = ""; for (int i = 0; i < 4 * N; ++i) { p += 'A'; } std::vector<string> v = {"abx", "axb", "bax", "bxa", "xab", "xba", "aby", "ayb", "bay", "bya", "yab", "yba", "axy", "ayx", "xay", "xya", "yax", "yxa", "bxy", "byx", "xby", "xyb", "ybx", "yxb", "baa", "xaa", "yaa", "abb", "xbb", "ybb", "axx", "bxx", "yxx", "ayy", "byy", "xyy", "a", "b", "x", "y", "ab", "ax", "ay", "ba", "bx", "by", "xa", "xb", "xy", "ya", "yb", "yx"}; for (auto i : v) { ll g = press(i); if (g == N) { return i; } } }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:11:17: warning: control reaches end of non-void function [-Wreturn-type]
   11 | std::string p = "";
      |                 ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...