백준 // 15686// 치킨 거리 //완전 탐색 하기~
https://www.acmicpc.net/problem/15686 1) nexxt_permutation 사용 :0초 나옴#include #include #include // next_permutationusing namespace std;int n, m; // 도시 크기, 유지할 치킨집 개수vector> PericanaChickenLocations;vector> HouseLocations;vector combination; // 조합 선택을 위한 배열// 특정 치킨집 조합으로 도시의 치킨 거리 계산int ChickenDistance(const vector>& selectedChicken){ int totalChickenDistance = 0; for (auto house : Hou..
cote/Intermediate
2025. 2. 7. 16:08