# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
836698 | Supersonic | Catfish Farm (IOI22_fish) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "fish.h"
#include <bits/stdc++.h>
using namespace std;
long long max_weights(int n, int m, std::vector<int> x, std::vector<int> y,
std::vector<int> w) {
bool s1=1,s2=1;
for(auto i:x){if(i%2==1)s1=0;if(i>=2)s2=0;}
if(s1){
long long t=0;
for(auto i:w)t+=w;
return t;
}
return 0;
}