結果

問題 No.933 おまわりさんこいつです
ユーザー komkompi
提出日時 2019-11-30 23:59:59
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 239 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 82,152 KB
実行使用メモリ 313,344 KB
最終ジャッジ日時 2024-11-21 03:45:39
合計ジャッジ時間 8,805 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 RE * 5 TLE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

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

temp=1
for p in P:
    temp*=p


while True:
    temp=list(str(temp))
    if len(temp)==1:
        break
    ans=0
    for item in temp:
        ans+=int(item)
    temp=ans
    
print(*temp)
0