⌨️

[AtCoder]ABC-328|A - Not Too Hard

2023/12/06に公開

設問ページ

提出結果

def getIntMap():
    return map(int, input().split())


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


def main():
    n, x = getIntMap()
    s = getIntList()

    print(sum([i for i in s if i <= x]))


if __name__ == "__main__":
    main()

Discussion