Submission #1077113

#TimeUsernameProblemLanguageResultExecution timeMemory
1077113pccCatfish Farm (IOI22_fish)C++17
0 / 100
16 ms3164 KiB
#include "fish.h" #include <vector> #include <bits/stdc++.h> using namespace std; #define ll long long long long max_weights(int N, int M, std::vector<int> X, std::vector<int> Y, std::vector<int> W) { ll ans[2] = {}; for(int i = 0;i<N;i++){ ans[X[i]&1] += W[i]; } return max(ans[0],ans[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...