結果
| 問題 |
No.933 おまわりさんこいつです
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-03-01 20:41:02 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 222 bytes |
| コンパイル時間 | 298 ms |
| コンパイル使用メモリ | 82,476 KB |
| 実行使用メモリ | 93,592 KB |
| 最終ジャッジ日時 | 2025-03-01 20:41:09 |
| 合計ジャッジ時間 | 6,766 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 TLE * 1 |
ソースコード
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)