Submission #415133

#TimeUsernameProblemLanguageResultExecution timeMemory
415133aris12345678Combo (IOI18_combo)C++14
0 / 100
1 ms200 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++) { string p; p += comb[i]; for(int j = 0; j < (int) comb.length(); j++) { p += comb[j]; for(int k = 0; k < (int) comb.length(); k++) { 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...