파일 업로드

🎨AI 리소스 생성

프롬프트 없음

재배치

profile
실행 시간 제한메모리 제한
1 초128 MB
📃 해결할 문제
💻 입력
🖨️ 출력

💻 예제 입력 1
5 6 3
1
2
3
1 2 1
1 5 2
3 2 3
3 4 5
4 2 7
4 5 10
🖨️ 예제 출력 1
12

출처: USACO 2012 February Contest, Silver Division Problem 3. Relocation