結果

問題 No.933 おまわりさんこいつです
ユーザー Novi
提出日時 2019-12-01 11:51:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 301 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 33,356 KB
最終ジャッジ日時 2024-11-21 04:33:10
合計ジャッジ時間 8,630 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 RE * 5 TLE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

def digit(n):
    if n==0:
        return 0
    q=str(n)
    tmp=0
    for i in range(len(q)):
        tmp+=int(q[i])
    if tmp%9!=0:
        tmp%=9
    else:
        tmp=9
    return  tmp

n=int(input())
p=list(map(int,input().split()))
ct=1
for i in range(n):
    ct*=p[i]

ans=digit(ct)
print(ans)
0