結果

問題 No.933 おまわりさんこいつです
ユーザー emthrm
提出日時 2019-11-29 21:48:54
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 203 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 82,536 KB
実行使用メモリ 312,336 KB
最終ジャッジ日時 2024-11-20 21:53:40
合計ジャッジ時間 18,086 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 TLE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = [int(i) for i in input().split()]
ans = 1
for e in a:
    ans *= e
while ans >= 10:
    tmp = 0
    while ans > 0:
        tmp += ans % 10
        ans //= 10
    ans = tmp
print(ans)
0