| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1333267 | model_code | Tourist (NOI24_tourist) | C++20 | 0 ms | 344 KiB |
#include <iostream>
#include <algorithm>
using namespace std;
int main () {
int n, x, y; cin >> n >> x >> y;
int ans = 0;
for(int i=0; i<n; i++) {
int a; cin>>a;
ans += min(a*x, y);
}
cout << ans << "\n";
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
