Submission #637785

#TimeUsernameProblemLanguageResultExecution timeMemory
637785aris12345678Catfish Farm (IOI22_fish)C++17
0 / 100
88 ms7276 KiB
#include "fish.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; ll max_weights(int n, int m, vector<int> x, vector<int> y, vector<int> w) { ll first = 0LL, second = 0LL; for(int i = 0; i < m; i++) { if(x[i] == 0) first += 1LL*w[i]; else second += 1LL*w[i]; } return max(first, second); } // int main() { // // return 0; // }
#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...