#include <bits/stdc++.h>
using namespace std;
int n, m, max_weight;
void init (int N, int M, vector<int> U, vector<int> V, vector<int> W) {
n = N;
m = M;
for (int i = 0; i < m; i ++) {
max_weight = W[i];
}
}
int getMinimumFuelCapacity (int X, int Y) {
if (n == m) {
return max_weight;
}
else {
return -1;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
300 KB |
Output is correct |
5 |
Correct |
2 ms |
332 KB |
Output is correct |
6 |
Correct |
1 ms |
304 KB |
Output is correct |
7 |
Correct |
1 ms |
204 KB |
Output is correct |
8 |
Correct |
1 ms |
304 KB |
Output is correct |
9 |
Correct |
33 ms |
3748 KB |
Output is correct |
10 |
Correct |
36 ms |
4468 KB |
Output is correct |
11 |
Correct |
34 ms |
4472 KB |
Output is correct |
12 |
Correct |
36 ms |
4652 KB |
Output is correct |
13 |
Correct |
39 ms |
4652 KB |
Output is correct |
14 |
Correct |
36 ms |
4036 KB |
Output is correct |
15 |
Correct |
97 ms |
8588 KB |
Output is correct |
16 |
Correct |
95 ms |
8612 KB |
Output is correct |
17 |
Correct |
102 ms |
8748 KB |
Output is correct |
18 |
Correct |
99 ms |
8856 KB |
Output is correct |
19 |
Incorrect |
58 ms |
6028 KB |
Output isn't correct |
20 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Incorrect |
92 ms |
7956 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
300 KB |
Output is correct |
5 |
Correct |
2 ms |
332 KB |
Output is correct |
6 |
Correct |
1 ms |
304 KB |
Output is correct |
7 |
Correct |
1 ms |
204 KB |
Output is correct |
8 |
Correct |
1 ms |
304 KB |
Output is correct |
9 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
300 KB |
Output is correct |
5 |
Correct |
2 ms |
332 KB |
Output is correct |
6 |
Correct |
1 ms |
304 KB |
Output is correct |
7 |
Correct |
1 ms |
204 KB |
Output is correct |
8 |
Correct |
1 ms |
304 KB |
Output is correct |
9 |
Correct |
33 ms |
3748 KB |
Output is correct |
10 |
Correct |
36 ms |
4468 KB |
Output is correct |
11 |
Correct |
34 ms |
4472 KB |
Output is correct |
12 |
Correct |
36 ms |
4652 KB |
Output is correct |
13 |
Correct |
39 ms |
4652 KB |
Output is correct |
14 |
Correct |
36 ms |
4036 KB |
Output is correct |
15 |
Correct |
97 ms |
8588 KB |
Output is correct |
16 |
Correct |
95 ms |
8612 KB |
Output is correct |
17 |
Correct |
102 ms |
8748 KB |
Output is correct |
18 |
Correct |
99 ms |
8856 KB |
Output is correct |
19 |
Incorrect |
92 ms |
7956 KB |
Output isn't correct |
20 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |