# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1165341 | duyngadocton77 | Fish 3 (JOI24_fish3) | C++20 | 640 ms | 141924 KiB |
#include<bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define task "fish3"
#define int long long
using ll = long long;
using ii = pair<int,int>;
using iii = pair<ii,int>;
const int MAX = (int) 3e5;
int n, D, Q;
int a[MAX + 5];
int cost[MAX + 5];
int prefix[MAX + 5];
ll sum[MAX + 5][25];
int rmq[MAX + 5][25];
int r[MAX + 5], p[MAX + 5], q[MAX + 5];
int sub[MAX + 5];
int pre[MAX + 5];
int s[MAX + 5];
signed main() {
ios::sync_with_stdio(0);
cin.tie(NULL);cout.tie(NULL);
if(fopen(task".inp","r")) {
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... |