# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
917284 | NK_ | Mensza (COI22_mensza) | C++17 | 5047 ms | 139752 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
// Success consists of going from failure to failure without loss of enthusiasm
#include <bits/stdc++.h>
using namespace std;
#define nl '\n'
#define pb push_back
#define sz(x) int(x.size())
using ll = long long;
template<class T> using V = vector<T>;
using vl = V<ll>;
using vi = V<int>;
int main() {
cin.tie(0)->sync_with_stdio(0);
int L, Q; cin >> L >> Q;
for(int q = 0; q < Q; q++) {
string s; cin >> s;
if (s[0] == 'a') {
int a; cin >> a; int cur = 0;
vi res; for(int i = 18; i >= 0; i--) {
if ((a >> i) & 1) {
cur |= (1 << i);
res.pb(cur);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |