这道题的话很简单。 只需要输出B题的样例就行了。 如样例2: 代码复制5 3 4 0 1 0 2 0 3 2 1 3 4 B题链接:https://www.luogu.com.cn/problem/AT_tenka1_2015_final_b