Submission #75413

#TimeUsernameProblemLanguageResultExecution timeMemory
75413khalilmiriCombo (IOI18_combo)C++14
0 / 100
4 ms456 KiB
#include <bits/stdc++.h> #include <string> #include <combo.h> using namespace std; vector<int> tab; string guess_sequence(int N) { tab.push_back(0); tab.push_back(1); tab.push_back('X' - 'A'); tab.push_back('Y'- 'A'); string g; do{ g=""; for(int i=0;i<3;i++) { char x= tab[i] + 'A'; g=g+x; } if(press(g)==3) { return(g); } }while(next_permutation(tab.begin(),tab.end())); }

Compilation message (stderr)

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