⌨️

[AtCoder]ABC-349|A - Zero Sum Game

2024/04/30に公開

設問ページ

提出結果

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


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


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

    print(0 - sum(a))


if __name__ == "__main__":
    main()

Discussion