Submission #825245

#TimeUsernameProblemLanguageResultExecution timeMemory
825245ThylOneCatfish Farm (IOI22_fish)C++17
0 / 100
69 ms7280 KiB
#include "fish.h" #include <vector> #include <bits/stdc++.h> using namespace std; typedef long long ll; long long max_weights(int N, int M, std::vector<int> X, std::vector<int> Y, std::vector<int> W) { ll sum=0; ll sum2=0; for(int i=0;i<M;i++){ if(X[i]){ sum+=W[i]; }else{ sum2+=W[i]; } } return max(sum,sum2); }
#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...