# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
144781 | Sorting | trapezoid (balkan11_trapezoid) | C++14 | 295 ms | 24568 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;
const int MAXN = 2e5 + 7;
const int mod = 30013;
const int inf = 1e9;
struct line{
int first, second, idx;
bool type;
line(){}
};
bool cmp(line lvalue, line rvalue){
return lvalue.first < rvalue.first;
}
struct fenwick_tree{
pair<int, int> arr[MAXN];
fenwick_tree(){
for(int i = 0; i < MAXN; ++i){
arr[i] = {0, 0};
}
}
void update(int idx, pair<int, int> val){
for(; idx < MAXN; idx += (idx & -idx)){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |