# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
642848 | qwerasdfzxcl | Broken Device 2 (JOI22_device2) | C++17 | 106 ms | 3488 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 "Anna.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
namespace {
ll dp[202], S[202], M;
vector<int> V0[202][4];
bool first = 1;
vector<int> encode(ll x){ ///reverse order
vector<int> ret;
for (int z=3;z<=M;z++){
if (x >= dp[z]) {x -= dp[z]; continue;}
if (x <= 1){
for (int i=z-3;i>=0;i--) ret.push_back(x^1);
ret.push_back(x);
ret.push_back(x);
return ret;
}
else if (x <= 3){
x -= 2;
for (int i=z-3;i>=0;i--) ret.push_back(x^1^(i&1));
ret.push_back(x);
ret.push_back(x);
return ret;
}
# | 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... |