# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1016709 | dosts | Hedgehog Daniyar and Algorithms (IZhO19_sortbooks) | C++17 | 358 ms | 262144 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.
//Dost SEFEROĞLU
#include <bits/stdc++.h>
using namespace std;
//#define int long long
#define pii pair<int,int>
#define ff first
#define ss second
#define sp << " " <<
#define vi vector<int>
#define all(xx) xx.begin(),xx.end()
const int N = 1e6+1,inf = 2e9,B = 23,MOD = 998244353,LIM = 1e9;
struct Node {
vi v;
int ans,mx;
};
int get_smaller(const vi& v, const int x) {
auto it = lower_bound(v.begin(),v.end(),x);
if (it == v.begin()) return -inf;
return *(--it);
}
Node merge(const Node& n1,const Node& n2) {
int n = n1.v.size(),m = n2.v.size();
int ptr = 0,ptr2 = 0;
Node ret;
while (ptr < n && ptr2 < m) {
if (n1.v[ptr] < n2.v[ptr2]) ret.v.push_back(n1.v[ptr++]);
else ret.v.push_back(n2.v[ptr2++]);
}
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |