제출 #1209417

#제출 시각아이디문제언어결과실행 시간메모리
1209417tkm_algorithmsCatfish Farm (IOI22_fish)C++20
0 / 100
48 ms7240 KiB
/** * In the name of Allah * We are nothing and you're everything **/ #include <bits/stdc++.h> #include "fish.h" using namespace std; using ll = long long; using ull = uint64_t; #define all(x) begin(x), end(x) #define sz(x) (int)(x).size() //#define int long long const char nl = '\n'; const int N = 2e5+1; const ll inf = 0x3f3f3f3f3f3f3f3fll; const int mod = 1e9+7; long long max_weights(int N, int M, std::vector<int> X, std::vector<int> Y, std::vector<int> W) { ll sum = 0, sum2 = 0; for (int i = 0; i < M; ++i) { if (X[i] == 0)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...