結果
問題 | No.933 おまわりさんこいつです |
ユーザー |
![]() |
提出日時 | 2025-03-20 20:42:47 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 72 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 82,668 KB |
実行使用メモリ | 91,864 KB |
最終ジャッジ日時 | 2025-03-20 20:43:01 |
合計ジャッジ時間 | 2,532 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
n = int(input())p = list(map(int, input().split()))if any(num == 0 for num in p):print(0)else:product_mod9 = 1for num in p:mod = num % 9product_mod9 = (product_mod9 * mod) % 9print(9 if product_mod9 == 0 else product_mod9)