結果

問題 No.933 おまわりさんこいつです
ユーザー c-yanc-yan
提出日時 2020-03-22 01:26:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 227 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 14,152 KB
最終ジャッジ日時 2023-08-25 19:26:15
合計ジャッジ時間 6,735 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,672 KB
testcase_01 AC 19 ms
8,508 KB
testcase_02 AC 19 ms
8,544 KB
testcase_03 AC 19 ms
8,536 KB
testcase_04 AC 20 ms
8,540 KB
testcase_05 AC 19 ms
8,532 KB
testcase_06 AC 19 ms
8,540 KB
testcase_07 AC 19 ms
8,548 KB
testcase_08 AC 20 ms
8,624 KB
testcase_09 AC 20 ms
8,612 KB
testcase_10 AC 20 ms
8,668 KB
testcase_11 AC 23 ms
8,580 KB
testcase_12 AC 32 ms
8,696 KB
testcase_13 AC 321 ms
9,048 KB
testcase_14 AC 652 ms
9,048 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from functools import reduce
from operator import mul

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

K = reduce(mul, P)
while K >= 10:
    t = 0
    while K != 0:
        t += K % 10
        K //= 10
    K = t
print(K)
0