# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
124641 | NMAC427 | CATS (NOI14_cats) | C++17 | 1537 ms | 504 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.
// https://oj.uz/problem/view/NOI14_cats
#include <bits/stdc++.h>
#define int int64_t
#define coutV(x) for (const auto& e: x) {cerr << e << " ";} cerr << "\n"
using namespace std;
struct ZeroStack {
vector<int> s;
bool bitFlipState = false;
void push(int v) {
s.push_back(v ^ bitFlipState);
}
int top() {
return (s.size() > 0 ? s.back() ^ bitFlipState : bitFlipState);
}
void pop() {
if (!s.empty()) {
s.pop_back();
}
}
void flip() {
bitFlipState = !bitFlipState;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |