#include "deliveries.h"
#include <bits/stdc++.h>
using namespace std;
int arr[2];
int dist;
void init(int n, vector<int> u, vector<int> v, vector<int> t, vector<int> w) {
for(int x=0;x<2;x++){
arr[x]=t[x];
}
dist=t[0];
return;
}
long long max_time(int S, int X) {
arr[S]=X;
if(arr[0]>=arr[1]){
return dist*arr[1]*2;
}
else{
return dist*(arr[0]+1)*2;
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
68 ms |
10320 KB |
3rd lines differ - on the 1st token, expected: '39049160', found: '0' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
3rd lines differ - on the 1st token, expected: '1627540', found: '2380' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
68 ms |
10320 KB |
3rd lines differ - on the 1st token, expected: '39049160', found: '0' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
68 ms |
10320 KB |
3rd lines differ - on the 1st token, expected: '39049160', found: '0' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
68 ms |
10320 KB |
3rd lines differ - on the 1st token, expected: '39049160', found: '0' |
2 |
Halted |
0 ms |
0 KB |
- |