結果
問題 | No.933 おまわりさんこいつです |
ユーザー |
|
提出日時 | 2025-01-22 19:40:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 582 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 22,032 KB |
最終ジャッジ日時 | 2025-01-22 19:40:17 |
合計ジャッジ時間 | 3,114 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 3 |
ソースコード
n = int(input())p = list(map(int, input().split()))res = 1for i in range(n):if p[i] == 0:print(0)breakelse:res *= p[i] % 9res %= 9print(9 if res == 0 else res)