#include "deliveries.h"
int deliveries[2];
int dist;
void init(int N, std::vector<int> U, std::vector<int> V, std::vector<int> T, std::vector<int> W) {
dist=T[0];
deliveries[0]=W[0];
deliveries[1]=W[1];
}
long long max_time(int S, int X) {
deliveries[S]=X;
if(deliveries[0]==deliveries[1]){
return dist*deliveries[0]*2;
}
if(deliveries[0]>deliveries[1]){
return dist*deliveries[1]*2;
}
return dist*(deliveries[0]+1)*2;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
78 ms |
9152 KB |
Output is correct |
2 |
Correct |
59 ms |
9128 KB |
Output is correct |
3 |
Correct |
64 ms |
9424 KB |
Output is correct |
4 |
Correct |
59 ms |
9048 KB |
Output is correct |
5 |
Correct |
61 ms |
9292 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
1 ms |
344 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
78 ms |
9152 KB |
Output is correct |
2 |
Correct |
59 ms |
9128 KB |
Output is correct |
3 |
Correct |
64 ms |
9424 KB |
Output is correct |
4 |
Correct |
59 ms |
9048 KB |
Output is correct |
5 |
Correct |
61 ms |
9292 KB |
Output is correct |
6 |
Incorrect |
1 ms |
344 KB |
3rd lines differ - on the 1st token, expected: '45306', found: '144' |
7 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
78 ms |
9152 KB |
Output is correct |
2 |
Correct |
59 ms |
9128 KB |
Output is correct |
3 |
Correct |
64 ms |
9424 KB |
Output is correct |
4 |
Correct |
59 ms |
9048 KB |
Output is correct |
5 |
Correct |
61 ms |
9292 KB |
Output is correct |
6 |
Incorrect |
0 ms |
424 KB |
3rd lines differ - on the 1st token, expected: '129238', found: '176' |
7 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
78 ms |
9152 KB |
Output is correct |
2 |
Correct |
59 ms |
9128 KB |
Output is correct |
3 |
Correct |
64 ms |
9424 KB |
Output is correct |
4 |
Correct |
59 ms |
9048 KB |
Output is correct |
5 |
Correct |
61 ms |
9292 KB |
Output is correct |
6 |
Runtime error |
1 ms |
344 KB |
Execution killed with signal 11 |
7 |
Halted |
0 ms |
0 KB |
- |