摘要: 题目描述 某一村庄在一条路线上安装了 \(n\) 盏路灯,每盏灯的功率有大有小(即同一段时间内消耗的电量有多有少)。老张就住在这条路中间某一路灯旁,他有一项工作就是每天早上天亮时一盏一盏地关掉这些路灯。 为了给村里节省电费,老张记录下了每盏路灯的位置和功率,他每次关灯时也都是尽快地去关,但是老张不知 阅读全文
posted @ 2020-11-27 21:44 暗い之殇 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目描述 There are \(n\) towns in Byteotia, connected with only \(n-1\) roads. Each road directly links two towns. All the roads have the same length and 阅读全文
posted @ 2020-11-27 15:40 暗い之殇 阅读(118) 评论(0) 推荐(0) 编辑