| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1176726 | Albara_Abdulhafith | 자매 도시 (APIO20_swap) | C++20 | 0 ms | 324 KiB |
#include "swap.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> cost;
int n;
void init(int N, int M, vector<int> U, vector<int> V, vector<int> W) {
n = N;
cost.resize(N);
for(int i = 0;i < N; i++){
cost[V[i]] = W[i];
}
cost[0] = 0;
}
int getMinimumFuelCapacity(int X, int Y) {
int mn = INT_MAX;
for(int i = 0; i < n; i++)if(i != X and i != Y){
mn = min(mn, cost[i]);
}
return max({cost[X], cost[Y], mn});
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
