#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]));
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
53 ms |
10324 KB |
Output is correct |
2 |
Correct |
57 ms |
10064 KB |
Output is correct |
3 |
Correct |
104 ms |
10248 KB |
Output is correct |
4 |
Correct |
60 ms |
10188 KB |
Output is correct |
5 |
Correct |
53 ms |
10456 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
3rd lines differ - on the 1st token, expected: '1627540', found: '204' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
53 ms |
10324 KB |
Output is correct |
2 |
Correct |
57 ms |
10064 KB |
Output is correct |
3 |
Correct |
104 ms |
10248 KB |
Output is correct |
4 |
Correct |
60 ms |
10188 KB |
Output is correct |
5 |
Correct |
53 ms |
10456 KB |
Output is correct |
6 |
Incorrect |
0 ms |
344 KB |
3rd lines differ - on the 1st token, expected: '45306', found: '144' |
7 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
53 ms |
10324 KB |
Output is correct |
2 |
Correct |
57 ms |
10064 KB |
Output is correct |
3 |
Correct |
104 ms |
10248 KB |
Output is correct |
4 |
Correct |
60 ms |
10188 KB |
Output is correct |
5 |
Correct |
53 ms |
10456 KB |
Output is correct |
6 |
Incorrect |
0 ms |
348 KB |
3rd lines differ - on the 1st token, expected: '129238', found: '176' |
7 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
53 ms |
10324 KB |
Output is correct |
2 |
Correct |
57 ms |
10064 KB |
Output is correct |
3 |
Correct |
104 ms |
10248 KB |
Output is correct |
4 |
Correct |
60 ms |
10188 KB |
Output is correct |
5 |
Correct |
53 ms |
10456 KB |
Output is correct |
6 |
Incorrect |
1 ms |
348 KB |
3rd lines differ - on the 1st token, expected: '1627540', found: '204' |
7 |
Halted |
0 ms |
0 KB |
- |