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 <bits/stdc++.h>
#define ll long long
using namespace std;
ll t;
vector<int> w;
void init(int N, vector<int> U, vector<int> V, vector<int> T, vector<int> W) {
w = W;
t = T[0];
}
ll max_time(int S, int X) {
w[S] = X;
return 2*t*(ll)(min(w[0]+1, w[1]));
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |