⌨️

[AtCoder]ABC-204|B - Nuts

2023/04/17に公開

設問ページ

提出結果

def getInt():
    return int(input())


def getIntList():
    return list(map(int, input().split()))


def main():
    n = getInt()
    a = getIntList()

    print(sum([i - 10 for i in a if i > 10]))


if __name__ == "__main__":
    main()

Discussion