제출 #783930

#제출 시각아이디문제언어결과실행 시간메모리
783930SoulKnight메기 농장 (IOI22_fish)C++17
3 / 100
57 ms7264 KiB
#include "fish.h" #include <vector> using namespace std; #define ll long long #define ln '\n' long long max_weights(int N, int M, std::vector<int> X, std::vector<int> Y, std::vector<int> W) { ll r1, r2; r1 = r2 = 0LL; int n = W.size(); for (int i = 0; i < n; i++){ if (X[i] == 1) r2 += W[i]; else r1 += W[i]; } return max(r1, r2); }
#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...