結果

問題 No.933 おまわりさんこいつです
ユーザー O2MT
提出日時 2020-08-21 17:02:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 92,800 KB
最終ジャッジ日時 2024-10-15 03:50:14
合計ジャッジ時間 5,059 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
P = list(map(int,input().split()))

ans = 1
for p in P:
  if p == 0:
    continue
  if p%9 == 0:
    ans *= 9
    continue
  ans *= p%9
if ans%9 == 0:
  print(9)
else:
  print(ans%9)
0