Submission #1072438

#TimeUsernameProblemLanguageResultExecution timeMemory
1072438vjudge1Catfish Farm (IOI22_fish)C++17
3 / 100
66 ms16272 KiB
#include "fish.h" #include <bits/stdc++.h> using namespace std; using ll = long long; using vll = vector <ll>; using ii = pair <ll, ll>; using vii = vector <ii>; using vi = vector <int>; // dp[i][j] = max grams caught if caught catfish until j from column i-1 // pier worth extending up to every catfish or until the end (O(n+m) optimal maximal piers) const ll MAXN = 1E5+16, INF = ll(1E18)+16; ll dp[MAXN]; vii ccs[MAXN]; ll max_weights (int n, int m, vi vx, vi vy, vi vw) { ll ans = 0; for (ll i = 0; i < m; i++) ans += vw[i]; return ans; }
#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...