第二题不用dp,遍历一遍即可,记录一个最小值,出现更小的值就loseCount+1,winCount = n-loseCount

相关推荐

牛客网
牛客企业服务