⌨️

[AtCoder]ABC-176|B - Multiple of 9

2023/03/21に公開

設問ページ

提出結果

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


def main():
    n = getInt()

    l = map(int, list(str(n)))

    print('Yes' if sum(l) % 9 == 0 else 'No')


if __name__ == "__main__":
    main()

Discussion