Submission #836697

#TimeUsernameProblemLanguageResultExecution timeMemory
836697SupersonicCatfish Farm (IOI22_fish)C++17
0 / 100
19 ms2636 KiB
#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:x)t+=i; return t; } return 0; }

Compilation message (stderr)

fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:7:13: warning: variable 's2' set but not used [-Wunused-but-set-variable]
    7 |   bool s1=1,s2=1;
      |             ^~
#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...