| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1367298 | psigurd | Nile (IOI24_nile) | C++20 | 12 ms | 2608 KiB |
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
vector<ll> calculate_costs(vector<int> w, vector<int> a, vector<int> b, vector<int> e){
vector<ll> ans;
int n = w.size();
ll SUM = 0;
for (auto &p : b){
SUM += p;
}
if (n % 2 == 1){
ll MIN = 1000000000000000000;
for (int i = 0; i < n; i += 2){
ll diff = a[i] - b[i];
MIN = min(MIN, diff);
}
SUM += MIN;
}
for (int i = 0; i < (int)e.size(); i++){
ans.push_back(SUM);
}
return ans;
}| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
