結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
![]() |
提出日時 | 2020-04-02 06:05:12 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 243 bytes |
コンパイル時間 | 1,274 ms |
コンパイル使用メモリ | 81,820 KB |
実行使用メモリ | 92,892 KB |
最終ジャッジ日時 | 2024-06-27 22:24:18 |
合計ジャッジ時間 | 4,664 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 3 |
ソースコード
n = int(input()) P = list(map(int, input().split())) ans = 1 for p in P: if p%9 == 0: ans *= 9 else: ans *= p%9 if 0 <= ans <= 8: print(ans) else: if ans%9 == 0: print(9) else: print(ans%9)