题目: 有一个数组,要是相邻的两个数加起来是10的倍数,那么可以删掉这两个数,后面的数会顶上来 求: 最多可以删除多少个数字 n = int(input()) lis = list(map(int,input().strip().split())) global m #全局变量,统计迭代次数 m = 0 def fun(num, ind): #消消乐,消除到不能消为止 global m if (num[ind] + num[ind + 1]) % 10 == 0: num.pop(ind) num.pop(ind)...