#include "swap.h"
#include <bits/stdc++.h>
#include <vector>
using namespace std;
map<pair<int,int> , int >mp;
void init(int N, int M, vector<int> U, vector<int> V, vector<int> W) {
mp[{0,1}]=-1;
}
int getMinimumFuelCapacity(int X, int Y){
if(X==0&&Y==1)return mp[{X,Y}];
return -1;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
208 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 |
204 KB |
Output is correct |
5 |
Correct |
1 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
304 KB |
Output is correct |
8 |
Correct |
1 ms |
204 KB |
Output is correct |
9 |
Correct |
31 ms |
2656 KB |
Output is correct |
10 |
Correct |
38 ms |
3104 KB |
Output is correct |
11 |
Correct |
35 ms |
3124 KB |
Output is correct |
12 |
Correct |
42 ms |
3216 KB |
Output is correct |
13 |
Correct |
39 ms |
3200 KB |
Output is correct |
14 |
Correct |
36 ms |
2876 KB |
Output is correct |
15 |
Correct |
113 ms |
4956 KB |
Output is correct |
16 |
Correct |
100 ms |
4872 KB |
Output is correct |
17 |
Correct |
109 ms |
5036 KB |
Output is correct |
18 |
Correct |
110 ms |
5024 KB |
Output is correct |
19 |
Incorrect |
62 ms |
3720 KB |
Output isn't correct |
20 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
208 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Incorrect |
90 ms |
5012 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
208 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 |
204 KB |
Output is correct |
5 |
Correct |
1 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
304 KB |
Output is correct |
8 |
Correct |
1 ms |
204 KB |
Output is correct |
9 |
Incorrect |
2 ms |
204 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
204 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
208 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 |
204 KB |
Output is correct |
5 |
Correct |
1 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
304 KB |
Output is correct |
8 |
Correct |
1 ms |
204 KB |
Output is correct |
9 |
Correct |
31 ms |
2656 KB |
Output is correct |
10 |
Correct |
38 ms |
3104 KB |
Output is correct |
11 |
Correct |
35 ms |
3124 KB |
Output is correct |
12 |
Correct |
42 ms |
3216 KB |
Output is correct |
13 |
Correct |
39 ms |
3200 KB |
Output is correct |
14 |
Correct |
36 ms |
2876 KB |
Output is correct |
15 |
Correct |
113 ms |
4956 KB |
Output is correct |
16 |
Correct |
100 ms |
4872 KB |
Output is correct |
17 |
Correct |
109 ms |
5036 KB |
Output is correct |
18 |
Correct |
110 ms |
5024 KB |
Output is correct |
19 |
Incorrect |
90 ms |
5012 KB |
Output isn't correct |
20 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
204 KB |
Output isn't correct |