摘要: 1 class Solution: 2 def minCostToMoveChips(self, chips: List[int]) -> int: 3 n = len(chips) 4 odd,even = 0,0 5 for i in range(n): 6 cur = chips[i] 7 if cur % 2 == 0: 8 even += 1 9 else: 10 odd += 1 11 阅读全文
posted @ 2019-10-06 13:44 Sempron2800+ 阅读(181) 评论(0) 推荐(0) 编辑