Submission #1083789

#TimeUsernameProblemLanguageResultExecution timeMemory
1083789SamueleVidCatfish Farm (IOI22_fish)C++17
3 / 100
69 ms17488 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long ll sum_tutto(int N, int M, vector<int> X, vector<int> Y, vector<int> W) { ll sum = 0; for (auto x : W) sum += x; return sum; } ll max_weights(int N, int M, vector<int> X, vector<int> Y, vector<int> W) { bool all_even = 1; for (auto x : X) if (x % 2) all_even = 0; return sum_tutto(N, M, X, Y, W); }

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:12:10: warning: variable 'all_even' set but not used [-Wunused-but-set-variable]
   12 |     bool all_even = 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...