結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
|
提出日時 | 2019-11-30 05:41:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 101 ms / 2,000 ms |
コード長 | 190 bytes |
コンパイル時間 | 131 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 21,816 KB |
最終ジャッジ日時 | 2024-11-21 00:57:09 |
合計ジャッジ時間 | 2,067 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
n = int(input()) p = list(map(lambda x: int(x),input().split())) flag = False ans = 1 for a in p: ans *= a ans %= 9 if not a: flag = True print(ans if ans or flag else 9)