using WeightedEdge = std::tuple<int, int, int>;


int& getWeight(WeightedEdge& x)

{

    return std::get<2>(x);

}


std::get이 템플릿이라 좀 난감하네