| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1369706 | revwin | Train Or Bus (NOI25_trainorbus) | C++20 | 0 ms | 344 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(n);
for(int i = 0; i < n; i++) {
cin >> a[i];
}
vector<int> b(n);
for(int i = 0; i < n; i++) {
cin >> b[i];
}
long long total = 0;
for(int i = 0; i < n; i++) {
total += min(a[i], b[i]);
}
cout << total << "\n";
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
