我为啥错了

dageda 发表于 1年前 · 关联问题 球魁

def sushu(x): count1 = 0 if x == 11: return 3 if x == 15: return 0 for i in range(1, x+1): if x % i == 0: count1 += 1 if count1 == 2: return 2 else: return 1 data = input().split(" ") # 比赛轮数 l1 = int(data[0]) count = l1 # 点数 xxx = int(data[1]) sum1 = 0 sum2 = 0 flag =True data2 = input().split(" ") data2 = list(map(int, data2)) s = 0 while l1 > 0: if xxx % 2 == 0: if flag == True: L = data2[s] s += 1 l = sushu(L) sum1 += l flag = False elif flag == False: sum2 += 2 flag = True else: if flag == True: sum2 += 2 flag =False elif flag == False: L = data2[s] s += 1 l = sushu(L) sum1 += l flag = True l1 -= 1 print(sum1, sum2) if sum1 > sum2: print("lwh wins.") elif sum1 < sum2: print("lzh wins.") else: print("equal.")