結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
|
提出日時 | 2019-11-30 02:50:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 101 ms / 2,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 21,948 KB |
最終ジャッジ日時 | 2024-11-21 00:53:37 |
合計ジャッジ時間 | 2,010 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
# coding: utf-8 N = int(input()) P = list(map(int, input().split())) mod = 9 ans = 1 for i in range(N): if P[i] == 0: print(0) exit() ans *= P[i] ans %= mod print(ans if ans != 0 else 9)