# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1250780 | ashen_witch | 나일강 (IOI24_nile) | C++20 | 0 ms | 0 KiB |
vector<long long> calculate_costs(vector<int> W, vector<int> A, vector<int> B, vector<int> E) {
int N = (int)A.size();
int Q = (int)E.size();
long long B_sum = 0;
for (auto x : B) {
B_sum += (long long)x;
}
long long answer = (long long)1e18;
if (N % 2 == 0) {
} else {
for (int i = 0; i < N; ++i) {
answer = min(answer, B_sum - B[i] + A[i]);
}
}
vector<long long> R(Q);
for (auto &x : R) {
x = answer;
}
return R;
}