Submission #312135

#TimeUsernameProblemLanguageResultExecution timeMemory
312135blueCombo (IOI18_combo)C++11
5 / 100
4 ms328 KiB
#include "combo.h" #include <string> using namespace std; string guess_sequence(int N) { for(string A:{"A", "B", "X", "Y"}) { for(string B:{"A", "B", "X", "Y"}) { if(A == B) continue; for(string C:{"A", "B", "X", "Y"}) { if(A == C) continue; if(press(A+B+C) == 3) return A+B+C; } } } }

Compilation message (stderr)

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