結果
| 問題 |
No.933 おまわりさんこいつです
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-03-01 20:41:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 1,953 ms / 2,000 ms |
| コード長 | 222 bytes |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 82,188 KB |
| 実行使用メモリ | 93,596 KB |
| 最終ジャッジ日時 | 2025-03-01 20:41:43 |
| 合計ジャッジ時間 | 6,372 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
import sys
sys.set_int_max_str_digits(0)
N = int(input())
P = list(map(int, input().split()))
ans = 1
for p in P:
ans *= sum(int(_p) for _p in str(p))
while ans >= 10:
ans = sum(map(int, str(ans)))
print(ans)