# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
615911 | angelo_torres | Arranging Shoes (IOI19_shoes) | C++17 | 92 ms | 73668 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 "shoes.h"
#define ff first
#define ss second
using namespace std;
typedef vector<int> vi;
typedef long long ll;
typedef pair<int,int> ii;
const int N = 1e5 + 10;
int n,a[N<<1],cn = 0;
vi s;
deque<ii> d[N];
struct Fenwick_Tree{
int n,p[N<<1];
void up(int ps,int dl){
for(; ps <= n; ps = (ps|(ps-1))+1)
p[ps] += dl;
}
int get(int ps){
int ans = 0;
for(; ps >= 1; ps = (ps&(ps-1)))
ans += p[ps];
return ans;
}
int ran(int l,int r){
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |