# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
917036 | penguin133 | Truck Driver (IOI23_deliveries) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "deliveries.h"
#include <bits/stdc++.h>
vector <int> w, t;
void init(int N, std::vector<int> U, std::vector<int> V, std::vector<int> T, std::vector<int> W) {
w = W;
t = T;
return;
}
long long max_time(int S, int X) {
w[S] = X;
return 1ll * min(w[0] + 1, w[1]) * t[0];
}