Submission #415134

#TimeUsernameProblemLanguageResultExecution timeMemory
415134aris12345678Combo (IOI18_combo)C++14
5 / 100
6 ms408 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; const int mxN = 2005; string guess_sequence(int n) { string comb = "AABBXXYY"; for(int i = 0; i < (int) comb.length(); i++) { for(int j = 0; j < (int) comb.length(); j++) { for(int k = 0; k < (int) comb.length(); k++) { string p; p += comb[i], p += comb[j], p += comb[k]; if(press(p) == 3) return p; } } } assert(true); }

Compilation message (stderr)

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