Submission #706379

#TimeUsernameProblemLanguageResultExecution timeMemory
706379zeta7532Combo (IOI18_combo)C++14
0 / 100
1 ms208 KiB
#include "combo.h" #include <bits/stdc++.h> #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") using namespace std; using ll = int64_t; const ll mod = 998244353; const ll INF = 1LL<<60; #define fi first #define se second #define rep(i,n) for(ll i=0;i<n;i++) #define all(x) x.begin(),x.end() #define faster ios::sync_with_stdio(false);cin.tie(nullptr) string guess_sequence(int N){ string s=""; rep(i,N){ if(press(s+'A')==i+1){ s+='A'; continue; } if(press(s+'B')==i+1){ s+='B'; break; } if(press(s+'X')==i+1){ s+='X'; break; } if(press(s+'Y')==i+1){ s+='Y'; break; } } cout << s << endl; }

Compilation message (stderr)

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