#include "deliveries.h"
#include <iostream>
#include <vector>
#define maxn 100005
#define maxq 300005
#define INF 1000000010
#define endl '\n'
using namespace std;
int n;
int pomm[maxn];
int pomm2[maxn];
void init(int N, vector<int> U, vector<int> V, vector<int> T, vector<int> W)
{
n = N;
W[0]++;
for(int i = 0; i < n; i++){ pomm[i] = W[i];pomm2[i] = T[i];}
}
long long max_time(int S , int X)
{
pomm[S] = X;
int minn = min(pomm[0] , pomm[1]);
return 2 * pomm2[0] * minn;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
64 ms |
7804 KB |
3rd lines differ - on the 1st token, expected: '39049160', found: '39049014' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
3rd lines differ - on the 1st token, expected: '1627540', found: '204' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
64 ms |
7804 KB |
3rd lines differ - on the 1st token, expected: '39049160', found: '39049014' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
64 ms |
7804 KB |
3rd lines differ - on the 1st token, expected: '39049160', found: '39049014' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
64 ms |
7804 KB |
3rd lines differ - on the 1st token, expected: '39049160', found: '39049014' |
2 |
Halted |
0 ms |
0 KB |
- |