摘要: Problem - C - Codeforces Example input 5 7 1 1 1 2 2 4 5 5 5 1 4 2 1 3 3 1 6 1 1 1 1 1 output 4 4 2 3 4 题意 n个点组成一个树, 1作为根节点, 输入第2~n个数的父节点序号, 问最少几次感染操作 阅读全文
posted @ 2022-04-12 21:08 la-la-wanf 阅读(145) 评论(0) 推荐(0) 编辑