# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
917197 | zyq181 | 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>
long long A, B;
long long w;
int ans;
void init(int N, std::vector<int> U, std::vector<int> V, std::vector<int> T, std::vector<int> W) {
w = T[0];
A = W[0] + 1;
B = W[1];
return;
}
long long max_time(int S, int X) {
if(S == 0) A = X + 1;
else B = X;
return 2LL*min(A, B)*w;
}