結果
| 問題 |
No.933 おまわりさんこいつです
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-03-01 20:35:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 202 bytes |
| コンパイル時間 | 441 ms |
| コンパイル使用メモリ | 82,576 KB |
| 実行使用メモリ | 93,416 KB |
| 最終ジャッジ日時 | 2025-03-01 20:35:59 |
| 合計ジャッジ時間 | 6,388 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 RE * 6 |
ソースコード
N = int(input())
P = list(map(int, input().split()))
ans = 1
for p in P:
ans *= sum(int(_p) for _p in str(p))
if ans >= 10:
while ans >= 10:
ans = sum(map(int, str(ans)))
print(ans)