# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
31959 | huynd2001 | 역사적 조사 (JOI14_historical) | C++14 | 4000 ms | 16156 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.
/*huypheu
5 5
9 8 7 8 9
1 2
3 4
4 4
1 4
2 4
*/
#include <bits/stdc++.h>
#define int long long
using namespace std;
int le[100007],ri[100007];
int ans[100007];
map <int,int> mymap;
int it[400007];
int blo;
int a[100007],b[100007];
int v[100007];
vector <int> ve;
void update(int node,int l,int r,int x,int p)
{
// if(node==1) cout << x << " " << p << endl;
// cout << node << " " << l << " " << r << endl;
if(l>r || x<l || r<x) return ;
if(l==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... |