Submission #950784

#TimeUsernameProblemLanguageResultExecution timeMemory
950784Dec0DeddCatfish Farm (IOI22_fish)C++17
3 / 100
89 ms21840 KiB
#include <bits/stdc++.h> #include "fish.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; const int N = 3e5+10; ll n, m, x[N], y[N], w[N], dp[N], cnt[N], p[N]; ll max_weights(int _n, int _m, vector<int> _x, vector<int> _y, vector<int> _w) { n=_n, m=_m; ll s=0; for (int i=1; i<=m; ++i) { x[i]=_x[i-1], y[i]=_y[i-1], w[i]=_w[i-1]; ++x[i], ++y[i]; s+=w[i]; } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...