啊哈哈哈哈

41 阅读1分钟

ef solution(cards): # Edit your code here

return 0

if name == "main": # Add your test cases here

print(solution([1, 1, 2, 2, 3, 3, 4, 5, 5]) == 4)
print(solution([0, 1, 0, 1, 2]) == 2)
ef solution(cards):
# Edit your code here

return 0

if name == "main": # Add your test cases here

print(solution([1, 1, 2, 2, 3, 3, 4, 5, 5]) == 4)
print(solution([0, 1, 0, 1, 2]) == 2)