제출 #825245

#제출 시각아이디문제언어결과실행 시간메모리
825245ThylOne메기 농장 (IOI22_fish)C++17
0 / 100
69 ms7280 KiB
#include "fish.h" #include <vector> #include <bits/stdc++.h> using namespace std; typedef long long ll; long long max_weights(int N, int M, std::vector<int> X, std::vector<int> Y, std::vector<int> W) { ll sum=0; ll sum2=0; for(int i=0;i<M;i++){ if(X[i]){ sum+=W[i]; }else{ sum2+=W[i]; } } return max(sum,sum2); }
#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...