T456664 [ICPC2024 Xi'an I] Chained Lights

题目描述

![M](https://cdn.luogu.com.cn/upload/image_hosting/rxz71crl.png)

输入格式

输出格式