# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
917197 | 2024-01-27T12:23:09 Z | zyq181 | Truck Driver (IOI23_deliveries) | C++17 | 0 ms | 0 KB |
#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; }