# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
868984 | 2023-11-02T18:47:42 Z | tch1cherin | Swapping Cities (APIO20_swap) | C++17 | 0 ms | 0 KB |
#include "swap.h" #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()) : 0; } int getMinimumFuelCapacity(int X, int Y) { return ans; }