Submission #375252

#TimeUsernameProblemLanguageResultExecution timeMemory
375252Edbert2397Combo (IOI18_combo)C++14
0 / 100
2 ms200 KiB
#include "combo.h" #include<bits/stdc++.h> using namespace std; std::string guess_sequence(int N) { char s[4] = {'A','B','X','Y'}; do{ string p = ""; for(int i = 0;i<3;i++){ p += s[i]; } int coins = press(p); if(coins == N){ return p; } }while(next_permutation(s,s + 4)); }

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...