# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
462522 | Mounir | Snowball (JOI21_ho_t2) | C++14 | 2545 ms | 10236 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>
#define sz(x) (int)x.size()
#define chmin(x, v) x = min(x, v)
#define chmax(x, v) x = max(x, v)
#define all(x) x.begin(), x.end()
#define pb push_back
#define pii pair<int, int>
#define deb first
#define fin second
#define int long long
using namespace std;
const int N = 5e5, OO = 1e18;
vector<int> debs, fins;
int nBoules, nJours;
int getInstant(int posInter, int posBoule){
int delta = -(posBoule - posInter);
if (delta < 0)
return lower_bound(debs.begin(), debs.end(), -delta) - debs.begin();
else
return upper_bound(fins.begin(), fins.end(), delta) - fins.begin();
}
signed main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |