U31655 [NOI2018] 归程

题目描述

最后的四组数据。 全部数据:https://www.luogu.org/problemnew/show/P4768

输入格式

输出格式