제출 #836699

#제출 시각아이디문제언어결과실행 시간메모리
836699Supersonic메기 농장 (IOI22_fish)C++17
3 / 100
67 ms13900 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:w)t+=i; return t; } return 0; }

컴파일 시 표준 에러 (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...