Submission #1207477

#TimeUsernameProblemLanguageResultExecution timeMemory
1207477That_SalamanderCombo (IOI18_combo)C++20
5 / 100
0 ms396 KiB
#include "combo.h" using namespace std; char chars[] = "ABXY"; string guess_sequence(int N) { for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { for (int k = 0; k < 4; k++) { string s = string() + chars[i] + chars[j] + chars[k]; if (press(s) == N) { return s; } } } } }

Compilation message (stderr)

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