Submission #992565

#TimeUsernameProblemLanguageResultExecution timeMemory
992565voiCombo (IOI18_combo)C++17
0 / 100
2 ms600 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; typedef long long ll; const int ar = 2e5+2; const ll mod = 1e9+7; const int oo = 1e9; string guess_sequence(int n) { string s = ""; for(int i = 1; i <= n; ++i) { if(press(s + 'A') == i) s += 'A'; else if(press(s + 'B') == i) s += 'B'; else if(press(s + 'X') == i) s += 'X'; else if(press(s + 'Y') == i) s += 'Y'; } }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...