結果

問題 No.933 おまわりさんこいつです
ユーザー edamame882
提出日時 2019-11-29 22:56:13
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 196 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 82,444 KB
実行使用メモリ 312,776 KB
最終ジャッジ日時 2024-11-20 23:46:29
合計ジャッジ時間 9,467 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 RE * 5 TLE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin

n = int(input())
a = list(map(int,input().split()))
tmp=1
for i in range(n) :
    tmp *= a[i]
        
while tmp>9:
    tmp = sum(list(map(int, str(tmp))))
    
print(tmp)

0