⌨️

[AtCoder]ABC-413|A - Content Too Large

に公開

設問ページ

提出結果

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


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


def main():
    N, M = getIntMap()
    A = getIntList()

    print("Yes" if sum(A) <= M else "No")


if __name__ == "__main__":
    main()

Discussion