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

相关推荐

面了100年面试不知...:太礼貌,还是
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务