一眼错。为什么不判断pasture[i]是不是1,判断完后为什么不设置pasture[i] = 1。你试试[0,0,1,0,0],3这个用例
点赞

相关推荐

牛客网
牛客企业服务