#include <bits/stdc++.h>
using namespace std;
bool flag = 0; int mx = 0;
void init (int n, int m, vector <int> u, vector <int> v, vector <int> w) {
flag = n == m; for (auto i : w) mx = max(mx, i);
}
int getMinimumFuelCapacity (int x, int y) {
return flag ? mx : -1;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
18 ms |
2136 KB |
Output is correct |
10 |
Correct |
26 ms |
2640 KB |
Output is correct |
11 |
Correct |
22 ms |
2648 KB |
Output is correct |
12 |
Correct |
23 ms |
2580 KB |
Output is correct |
13 |
Correct |
24 ms |
2640 KB |
Output is correct |
14 |
Correct |
22 ms |
2296 KB |
Output is correct |
15 |
Correct |
64 ms |
4288 KB |
Output is correct |
16 |
Correct |
67 ms |
4352 KB |
Output is correct |
17 |
Correct |
65 ms |
4540 KB |
Output is correct |
18 |
Correct |
65 ms |
4536 KB |
Output is correct |
19 |
Correct |
40 ms |
4132 KB |
Output is correct |
20 |
Correct |
64 ms |
9812 KB |
Output is correct |
21 |
Correct |
72 ms |
9920 KB |
Output is correct |
22 |
Correct |
68 ms |
10172 KB |
Output is correct |
23 |
Correct |
68 ms |
10164 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Incorrect |
60 ms |
4272 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
10 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
18 ms |
2136 KB |
Output is correct |
10 |
Correct |
26 ms |
2640 KB |
Output is correct |
11 |
Correct |
22 ms |
2648 KB |
Output is correct |
12 |
Correct |
23 ms |
2580 KB |
Output is correct |
13 |
Correct |
24 ms |
2640 KB |
Output is correct |
14 |
Correct |
22 ms |
2296 KB |
Output is correct |
15 |
Correct |
64 ms |
4288 KB |
Output is correct |
16 |
Correct |
67 ms |
4352 KB |
Output is correct |
17 |
Correct |
65 ms |
4540 KB |
Output is correct |
18 |
Correct |
65 ms |
4536 KB |
Output is correct |
19 |
Incorrect |
60 ms |
4272 KB |
Output isn't correct |
20 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |