제출 #690610

#제출 시각아이디문제언어결과실행 시간메모리
690610saayan007콤보 (IOI18_combo)C++17
0 / 100
50 ms208 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; using ll = long long; using pi = pair<int, int>; using pl = pair<long long, long long>; using vi = vector<int>; using vl = vector<long long>; using vpi = vector<pair<int, int>>; using vpl = vector<pair<long long, long long>>; #define fur(i, a, b) for(ll i = a; i <= (ll)b; ++i) #define ruf(i, a, b) for(ll i = a; i >= (ll)b; --i) #define fr first #define sc second #define mp make_pair #define pb emplace_back #define nl "\n" #define all(x) (x).begin(),(x).end() #define rall(x) (x).rbegin(),(x).rend() string guess_sequence(int N) { char c[] = {'A', 'B', 'X', 'Y'}; fur(i, 0, (1 << 6) - 1) { ll store = i; string s; fur(j, 0, 2) { s.push_back(c[i&j]); i /= 4; } if(press(s) == 3) { return s; } i = store; } }

컴파일 시 표준 에러 (stderr) 메시지

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