# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
157519 | combi1k1 | Construction of Highway (JOI18_construction) | C++14 | 1247 ms | 17280 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 X first
#define Y second
#define ll long long
#define pb push_back
#define lch i << 1
#define rch i << 1 | 1
#define all(x) x.begin(),x.end()
const int N = 1e5 + 1;
typedef pair<int,int> ii;
namespace _IT {
int t[N << 2];
int add(int x,int y) {
return x == y ? x : 0;
}
int upd(int i,int l,int r,int L,int R,int v) {
if (l > R || L > r) return 0;
if (L <= l && r <= R) {
t[i] = v;
return 1;
}
int m = (l + r) / 2;
upd(lch,l,m,L,R,v); ++m;
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... |