0
点赞
收藏
分享

微信扫一扫

【数组-简单】LCP 06. 拿硬币

ZGtheGreat 2022-02-17 阅读 23

题目
代码
在这里插入图片描述

class Solution:
    def minCount(self, coins: List[int]) -> int:
        cnt=0
        for c in coins:
            cnt+=(c//2+c%2)
        return cnt
举报

相关推荐

0 条评论