# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1121372 | epicci23 | Teams (IOI15_teams) | C++17 | 4064 ms | 360364 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"
#include "teams.h"
#define all(v) v.begin() , v.end()
#define sz(a) (int)a.size()
using namespace std;
const int BL = 500;
const int N = 5e5 + 5;
struct Node{
Node* lc;
Node* rc;
int sum;
Node(){
lc = rc = NULL;
sum = 0;
}
};
vector<Node*> seg;
vector<array<int,2>> v;
int n;
Node* build(int l,int r){
if(l == r) return new Node();
int m = (l + r) / 2;
Node* res = new Node();
res -> lc = build(l, m);
res -> rc = build(m + 1, r);
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... |