Submission #868986

# Submission time Handle Problem Language Result Execution time Memory
868986 2023-11-02T18:50:37 Z tch1cherin Swapping Cities (APIO20_swap) C++17
6 / 100
65 ms 10176 KB
#include "swap.h"
#include <algorithm>
#include <vector>

int ans;

void init(int N, int M,
          std::vector<int> U, std::vector<int> V, std::vector<int> W) {
  ans = N == M ? *std::max_element(W.begin(), W.end()) : -1;
}

int getMinimumFuelCapacity(int X, int Y) {
  return ans;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 356 KB Output is correct
4 Correct 0 ms 360 KB Output is correct
5 Correct 0 ms 360 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 360 KB Output is correct
8 Correct 0 ms 360 KB Output is correct
9 Correct 19 ms 3700 KB Output is correct
10 Correct 19 ms 4500 KB Output is correct
11 Correct 20 ms 4448 KB Output is correct
12 Correct 27 ms 4708 KB Output is correct
13 Correct 21 ms 4668 KB Output is correct
14 Correct 20 ms 4192 KB Output is correct
15 Correct 57 ms 8676 KB Output is correct
16 Correct 56 ms 8712 KB Output is correct
17 Correct 58 ms 8864 KB Output is correct
18 Correct 58 ms 8864 KB Output is correct
19 Correct 38 ms 6176 KB Output is correct
20 Correct 61 ms 9672 KB Output is correct
21 Correct 60 ms 9920 KB Output is correct
22 Correct 65 ms 10176 KB Output is correct
23 Correct 62 ms 10176 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Incorrect 55 ms 7976 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 356 KB Output is correct
4 Correct 0 ms 360 KB Output is correct
5 Correct 0 ms 360 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 360 KB Output is correct
8 Correct 0 ms 360 KB Output is correct
9 Incorrect 0 ms 356 KB Output isn't correct
10 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 356 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 356 KB Output is correct
4 Correct 0 ms 360 KB Output is correct
5 Correct 0 ms 360 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 360 KB Output is correct
8 Correct 0 ms 360 KB Output is correct
9 Correct 19 ms 3700 KB Output is correct
10 Correct 19 ms 4500 KB Output is correct
11 Correct 20 ms 4448 KB Output is correct
12 Correct 27 ms 4708 KB Output is correct
13 Correct 21 ms 4668 KB Output is correct
14 Correct 20 ms 4192 KB Output is correct
15 Correct 57 ms 8676 KB Output is correct
16 Correct 56 ms 8712 KB Output is correct
17 Correct 58 ms 8864 KB Output is correct
18 Correct 58 ms 8864 KB Output is correct
19 Incorrect 55 ms 7976 KB Output isn't correct
20 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 356 KB Output isn't correct
2 Halted 0 ms 0 KB -