Submission #1223059

#TimeUsernameProblemLanguageResultExecution timeMemory
1223059madamadam3콤보 (IOI18_combo)C++20
5 / 100
2 ms488 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; using str = string; str CHARS[4] = {"A", "B", "X", "Y"}; #define rep(x) for (auto &x : CHARS) str guess_sequence(int N) { rep(c1) rep(c2) rep(c3) { str S = c1 + c2 + c3; if (press(S) == 3) return S; } }

Compilation message (stderr)

combo.cpp: In function 'str guess_sequence(int)':
combo.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
   16 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...