Submission #729818

#TimeUsernameProblemLanguageResultExecution timeMemory
729818caganyanmazCatfish Farm (IOI22_fish)C++17
0 / 100
93 ms14692 KiB
#include <bits/stdc++.h> using namespace std; int64_t max_weights(int n, int m, vector<int> x, vector<int> y, vector<int> w) { int64_t l_sum = 0; int64_t r_sum = 0; for (int i = 0; i < m; i++) if (x[i] == 0) l_sum += w[i]; else if (x[i] == 1) r_sum += w[i]; else assert(false); return max(l_sum, r_sum); }
#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...