Submission #783930

#TimeUsernameProblemLanguageResultExecution timeMemory
783930SoulKnightCatfish Farm (IOI22_fish)C++17
3 / 100
57 ms7264 KiB
#include "fish.h" #include <vector> using namespace std; #define ll long long #define ln '\n' long long max_weights(int N, int M, std::vector<int> X, std::vector<int> Y, std::vector<int> W) { ll r1, r2; r1 = r2 = 0LL; int n = W.size(); for (int i = 0; i < n; i++){ if (X[i] == 1) r2 += W[i]; else r1 += W[i]; } return max(r1, r2); }
#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...