結果

問題 No.933 おまわりさんこいつです
ユーザー onsen_manjuuu
提出日時 2020-11-21 20:43:04
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 194 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 20,672 KB
最終ジャッジ日時 2024-07-23 16:04:47
合計ジャッジ時間 6,050 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 TLE * 1 -- * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

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

for i in P:
    pi *= i

while pi > 9:
    nxt = 0
    while pi:
        nxt += pi % 10
        pi = pi // 10
    pi = nxt

print(pi)
0