結果
| 問題 | No.1168 Digit Sum Sequence |
| コンテスト | |
| ユーザー |
もぐら 3.0
|
| 提出日時 | 2023-11-13 00:04:14 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 182 bytes |
| 記録 | |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2026-04-13 05:50:50 |
| 合計ジャッジ時間 | 2,249 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 29 |
ソースコード
def sum(n):
for i in range(100):
temp=0
for j in range(len(str(n))):
temp+=int(str(n)[j])
n=temp
return n
N = int(input())
print(sum(N))
もぐら 3.0