結果

問題 No.1168 Digit Sum Sequence
ユーザー shotoyoo
提出日時 2020-08-14 21:27:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 225 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 82,440 KB
実行使用メモリ 52,608 KB
最終ジャッジ日時 2024-10-10 14:02:09
合計ジャッジ時間 2,354 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


n = int(input())
for i in range(100):
    n = sum(int(c) for c in str(n))
print(n)
0