# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
727751 | fatemetmhr | Fish 2 (JOI22_fish2) | C++17 | 944 ms | 2900 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.
// Be name khoda //
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(x) x.begin(), x.end()
#define pb push_back
#define fi first
#define se second
#define mp make_pair
const int maxn5 = 1e5 + 10;
const int maxnt = 4e6 + 10;
const ll inf = 1e18;
int cnt[maxn5], a[maxn5], av[maxn5], lq, rq;
ll ps[maxn5];
inline void check(int l, int r){
if(r == l + 1)
return;
ll sum = ps[r - 1] - (l == -1 ? 0 : ps[l]);
//cout << "checking " << l << ' ' << r << ' ' << sum << endl;
if(sum >= min(r >= rq ? inf : a[r], l < lq ? inf : a[l]))
return;
//cout << "ya " << l << ' ' << r << endl;
# | 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... |