input: caoccaol output 4 不一定是n-1,可能是n-2,取决于交换闭环的数量
2 1

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务