結果
問題 | No.1168 Digit Sum Sequence |
ユーザー | polygon283 |
提出日時 | 2023-09-10 21:09:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-28 12:13:31 |
合計ジャッジ時間 | 2,015 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 29 |
ソースコード
N = input() def Digit_Sum_Sequence(N): #a100を求める関数 for _ in range(100): sum = 0 for Digit in str(N): sum += int(Digit) N = sum return N print(Digit_Sum_Sequence(N))