# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
394280 | 2021-04-26T10:50:41 Z | irmuun | Swapping Cities (APIO20_swap) | C++17 | 0 ms | 0 KB |
#include "swap.h" #include <btis/stdc++.h> using namespace std; int ans=0,i; void init(int N, int M, vector<int> U, vector<int> V, vector<int> W) { ans=W[0]; for(i=0;i<M;i++){ ans=max(ans,W[i]); } } int getMinimumFuelCapacity(int X, int Y) { if(M+1==N){ return 0; } else{ return ans; } }