Submission #375302

# Submission time Handle Problem Language Result Execution time Memory
375302 2021-03-09T07:09:51 Z astoria Swapping Cities (APIO20_swap) C++14
6 / 100
129 ms 10324 KB
#include "bits/stdc++.h"
#include "swap.h"
#include <vector>
using namespace std;
 
int mx;
bool isM;
 
void init(int N, int M, std::vector<int> U, std::vector<int> V, std::vector<int> W) {
	
	mx=0;
	for(int i : W){
		mx=max(mx,i);
	}
	
	isM=0;
	if(N==M) isM=1;
}
 
int getMinimumFuelCapacity(int X, int Y) {
	if(isM) return mx;
	else return -1;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 492 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Correct 1 ms 512 KB Output is correct
7 Correct 1 ms 364 KB Output is correct
8 Correct 1 ms 384 KB Output is correct
9 Correct 27 ms 3820 KB Output is correct
10 Correct 33 ms 4588 KB Output is correct
11 Correct 32 ms 4588 KB Output is correct
12 Correct 35 ms 4864 KB Output is correct
13 Correct 37 ms 4972 KB Output is correct
14 Correct 33 ms 4204 KB Output is correct
15 Correct 100 ms 8824 KB Output is correct
16 Correct 108 ms 8604 KB Output is correct
17 Correct 99 ms 8944 KB Output is correct
18 Correct 100 ms 8916 KB Output is correct
19 Correct 84 ms 6324 KB Output is correct
20 Correct 96 ms 9704 KB Output is correct
21 Correct 129 ms 10020 KB Output is correct
22 Correct 107 ms 10324 KB Output is correct
23 Correct 104 ms 10324 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 492 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Incorrect 93 ms 8204 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 492 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Correct 1 ms 512 KB Output is correct
7 Correct 1 ms 364 KB Output is correct
8 Correct 1 ms 384 KB Output is correct
9 Incorrect 1 ms 364 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 492 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Correct 1 ms 512 KB Output is correct
7 Correct 1 ms 364 KB Output is correct
8 Correct 1 ms 384 KB Output is correct
9 Correct 27 ms 3820 KB Output is correct
10 Correct 33 ms 4588 KB Output is correct
11 Correct 32 ms 4588 KB Output is correct
12 Correct 35 ms 4864 KB Output is correct
13 Correct 37 ms 4972 KB Output is correct
14 Correct 33 ms 4204 KB Output is correct
15 Correct 100 ms 8824 KB Output is correct
16 Correct 108 ms 8604 KB Output is correct
17 Correct 99 ms 8944 KB Output is correct
18 Correct 100 ms 8916 KB Output is correct
19 Incorrect 93 ms 8204 KB Output isn't correct
20 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Output isn't correct