結果
問題 | No.1168 Digit Sum Sequence |
ユーザー | chineristAC |
提出日時 | 2020-08-14 21:21:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 156 bytes |
コンパイル時間 | 185 ms |
コンパイル使用メモリ | 82,384 KB |
実行使用メモリ | 54,132 KB |
最終ジャッジ日時 | 2024-10-10 12:24:26 |
合計ジャッジ時間 | 2,341 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 29 |
ソースコード
def digitsum(n): data=[int(str(n)[i]) for i in range(len(str(n)))] return sum(data) N=int(input()) for i in range(99): N=digitsum(N) print(N)