59011 [ALGORITHM] 백준 5901 - Relocation https://www.acmicpc.net/problem/5901 5901번: Relocation Input Details There are 5 towns, with towns 1, 2, and 3 having markets. There are 6 roads. Output Details FJ builds his farm in town 5. His daily schedule takes him through towns 5-1-2-3-2-1-5, for a total distance of 12. www.acmicpc.net 대강 해석 존은 N(1 >K; int a,b,c; for(int i=0;i>a; market.push_back(a); } sort(market.begin(),market.end()); fo.. 2022. 10. 1. 이전 1 다음