# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1012002 | Unforgettablepl | Shopping (JOI21_shopping) | C++17 | 149 ms | 12764 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.
// THIS SHOULD ONLY GET 32 POINTS. GRADER APPEARS TO HAVE A BUG.
#include "Anna.h"
#include <vector>
#include <bits/stdc++.h>
using namespace std;
const int BLOCK_SIZE = 1382;
namespace {
int L, R;
vector<bool> buffer;
int ptr = 0;
bool read(){
assert(ptr<buffer.size());
return buffer[ptr++];
}
int get(int l,int r){
vector<int> depth(2*BLOCK_SIZE+1);
vector<int> p(2*BLOCK_SIZE+1);
vector<int> actual(2*BLOCK_SIZE+1);
int c = 0;
int act = 0;
int ll = -1,rr = -1;
function<void(int,int)> readtree = [&](int par,int dep){
p[c] = par;
depth[c] = dep;
int myc = c;
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... |