# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
124637 | johutha | CATS (NOI14_cats) | C++14 | 1557 ms | 262148 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.
#include <vector>
#include <iostream>
#define int int64_t
using namespace std;
struct solver
{
int x, l, n;
vector<int> s1;
vector<int> s2;
void calc()
{
s1.resize(2, 0);
s2.resize(2, 0);
int ctr = 0;
while (x > 0)
{
if (s1.size() == 0) {s1.push_back(0);}
s2.push_back(s1.back() ^ ctr);
s1.pop_back();
ctr += 1; ctr %= 2;
if (s2.back() > l)
{
x--;
if (x == 0) cout << s2.back() << "\n";
}
else
# | 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... |