# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
623574 | ACGN | Distributing Candies (IOI21_candies) | C++17 | 2367 ms | 798436 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<bits/stdc++.h>
using namespace std;
//#define int long long
#define vi vector<int>
#define pii pair<int,int>
#define vii vector<pii>
#define pb push_back
#include "candies.h"
const int MAX = 1<<30;
struct Node {
int val,lazy,l,r,sl,sr;
Node(int lb,int rb) {
val=0;lazy=-1;l=-1;r=-1;sl=lb;sr=rb;
}
Node() {
val=0;lazy=-1;l=-1;r=-1;sl=0;sr=MAX;
}
};
struct ilst {
vector<Node> vn;
int val = 0;
ilst() {
vn.pb(Node());
}
void push(int pos) {
//cout<<"p("<<pos<<") ";
int lh=vn[pos].sl;
int rh=vn[pos].sr;
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... |