| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1355526 | mxhrvs | Bikeparking (EGOI24_bikeparking) | C++20 | 1 ms | 344 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (n == 2) {
long long x0, x1, y0, y1;
cin >> x0 >> x1;
cin >> y0 >> y1;
long long U = 0;
long long D = 0;
long long a = min(x0, y1);
U += a;
x0 -= a;
y1 -= a;
long long x = min(x0, y0);
x0 -= x;
y0 -= x;
long long y = min(x1, y1);
x1 -= y;
y1 -= y;
long long b = min(x1, y0);
D += b;
cout << U - D << endl;
}
return 0;
}| # | 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... | ||||
