結果

問題 No.933 おまわりさんこいつです
ユーザー ああいい
提出日時 2021-12-05 17:01:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 217 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,824 KB
最終ジャッジ日時 2024-07-07 07:54:09
合計ジャッジ時間 5,673 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 TLE * 1 -- * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

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

def calc(K):
    ans = 0
    while K:
        ans += K % 10
        K = K // 10
    return ans

K = 1
for i in P:
    K *= i
while K >= 10:
    K = calc(K)
print(K)
0