結果

問題 No.933 おまわりさんこいつです
ユーザー pluto77
提出日時 2019-11-30 11:14:59
言語 Python2
(2.7.18)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 891 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 16,520 KB
最終ジャッジ日時 2024-11-21 01:08:23
合計ジャッジ時間 2,449 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki933

n=int(raw_input())
p=map(int,raw_input().split())
res=1
f=True
for i in p:
 res*=i
 res%=9
 if not i:
  f=False
if f:
 if res==0:
  print 9
 else:
  print res
else:
 print 0
0