⌨️

[AtCoder]ABC-173|A - Payment

2023/03/19に公開

設問ページ

提出結果

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


def main():
    n = getInt()

    m = n % 1000

    print(0 if m == 0 else 1000 - m)


if __name__ == "__main__":
    main()

Discussion