#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]=w[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;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
67 ms |
7696 KB |
Output is correct |
2 |
Correct |
69 ms |
10180 KB |
Output is correct |
3 |
Correct |
70 ms |
10328 KB |
Output is correct |
4 |
Correct |
69 ms |
10320 KB |
Output is correct |
5 |
Correct |
70 ms |
10324 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
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 |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
67 ms |
7696 KB |
Output is correct |
2 |
Correct |
69 ms |
10180 KB |
Output is correct |
3 |
Correct |
70 ms |
10328 KB |
Output is correct |
4 |
Correct |
69 ms |
10320 KB |
Output is correct |
5 |
Correct |
70 ms |
10324 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 |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
67 ms |
7696 KB |
Output is correct |
2 |
Correct |
69 ms |
10180 KB |
Output is correct |
3 |
Correct |
70 ms |
10328 KB |
Output is correct |
4 |
Correct |
69 ms |
10320 KB |
Output is correct |
5 |
Correct |
70 ms |
10324 KB |
Output is correct |
6 |
Incorrect |
1 ms |
348 KB |
3rd lines differ - on the 1st token, expected: '129238', found: '176' |
7 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
67 ms |
7696 KB |
Output is correct |
2 |
Correct |
69 ms |
10180 KB |
Output is correct |
3 |
Correct |
70 ms |
10328 KB |
Output is correct |
4 |
Correct |
69 ms |
10320 KB |
Output is correct |
5 |
Correct |
70 ms |
10324 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 |
- |