Submission #745727

#TimeUsernameProblemLanguageResultExecution timeMemory
745727inventiontimeCatfish Farm (IOI22_fish)C++17
0 / 100
86 ms14568 KiB
#include "fish.h" #include <bits/stdc++.h> using namespace std; #define pb push_back #define re resize #define ff first #define ss second #define all(x) (x).begin(), (x).end() #define all1(x) (x).begin()+1, (x).end() #define loop(i, n) for(int i = 0; i < n; i++) #define loop1(i, n) for(int i = 1; i <= n; i++) #define print(x) cout << #x << ": " << x << endl << flush template<class T> bool ckmin(T&a, T b) { bool B = a > b; a = min(a, b); return B; } template<class T> bool ckmax(T&a, T b) { bool B = a < b; a = max(a, b); return B; } typedef long long ll; typedef vector<int> vi; ll max_weights(int n, int m, vi x, vi y, vi w) { ll res[2] = {0, 0}; loop(i, m) res[x[i]] += w[i]; return max(res[0], res[1]); }
#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...