結果

問題 No.933 おまわりさんこいつです
ユーザー aaaaaaaaaa2230
提出日時 2022-04-21 23:45:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 82,168 KB
実行使用メモリ 89,884 KB
最終ジャッジ日時 2024-06-23 02:36:39
合計ジャッジ時間 2,241 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
P = list(map(int,input().split()))
if 0 in P:
    print(0)
    exit()
ans = 1
for p in P:
    ans *= p%9
    ans %= 9
print(ans if ans else 9)
0