Tags: Simulation, Tree Structure, DP, Shortest Path, Enumerate

Difficulty: 0.53      Download⬇️

Overview

Problem Description

We provide the natural language description of the task in 3 formats (.pdf,.docx,.md) and 2 languages (Chinese, English), the formal specification of MiniZinc description, which can be obtained by clicking the link under the title to download the whole task

Test

Input:
Output: