题解 | 错误出现的次数
错误出现的次数
https://www.nowcoder.com/practice/01da65ec58f84fba93611aae4735f68b
x = [int(i) for i in input().split(' ')] count = 0 list = [] for i in range(len(x)): if x[i] == 0: count += 1 list.append(count) print(count)
错误出现的次数
https://www.nowcoder.com/practice/01da65ec58f84fba93611aae4735f68b
x = [int(i) for i in input().split(' ')] count = 0 list = [] for i in range(len(x)): if x[i] == 0: count += 1 list.append(count) print(count)
相关推荐