Submission #138148

#TimeUsernameProblemLanguageResultExecution timeMemory
138148CaroLindaCombo (IOI18_combo)C++14
5 / 100
3 ms296 KiB
#include <bits/stdc++.h> #include "combo.h" #define debug #define lp(i,a,b) for(int i=a;i<b;i++) #define pii pair<int,int> #define ll long long #define ff first #define ss second #define pb push_back #define mk make_pair const int MAXN = 2e3+10 ; using namespace std ; string guess_sequence(int tam) { string p ; p.resize( tam ) ; char c[4] = {'A' , 'B' , 'X' , 'Y'} ; lp(i,0,4) lp(j,0,4) lp(k,0,4) { p[0] = c[i] ; p[1] = c[j] ; p[2] = c[k] ; if( press(p) == tam ) return p ; } }

Compilation message (stderr)

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