結果

問題 No.933 おまわりさんこいつです
ユーザー tanon710
提出日時 2020-10-04 01:31:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 938 ms
コンパイル使用メモリ 82,400 KB
実行使用メモリ 89,472 KB
最終ジャッジ日時 2024-07-18 11:19:46
合計ジャッジ時間 2,323 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
arr=list(map(int,input().split()))
tmp=1
for val in arr:
    tmp*=val
    tmp%=9
if tmp==0:
    if arr.count(0)==0:
        print(9)
    else:
        print(0)
else:
    print(tmp)
0