結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
![]() |
提出日時 | 2025-03-20 18:44:06 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 73 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 82,344 KB |
実行使用メモリ | 91,976 KB |
最終ジャッジ日時 | 2025-03-20 18:44:09 |
合計ジャッジ時間 | 2,156 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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 = 1 for num in p: mod = num % 9 product_mod9 = (product_mod9 * mod) % 9 print(9 if product_mod9 == 0 else product_mod9)