結果

問題 No.933 おまわりさんこいつです
ユーザー fuppy_kyoprofuppy_kyopro
提出日時 2019-11-29 22:06:56
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 220 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 82,524 KB
実行使用メモリ 83,536 KB
最終ジャッジ日時 2024-04-30 23:39:10
合計ジャッジ時間 5,719 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
59,400 KB
testcase_01 AC 37 ms
53,488 KB
testcase_02 AC 38 ms
52,492 KB
testcase_03 AC 38 ms
52,876 KB
testcase_04 AC 38 ms
52,736 KB
testcase_05 AC 38 ms
52,984 KB
testcase_06 AC 39 ms
52,200 KB
testcase_07 AC 38 ms
52,992 KB
testcase_08 AC 39 ms
52,676 KB
testcase_09 AC 39 ms
52,532 KB
testcase_10 AC 38 ms
51,876 KB
testcase_11 AC 44 ms
59,244 KB
testcase_12 AC 58 ms
60,300 KB
testcase_13 AC 411 ms
75,764 KB
testcase_14 AC 811 ms
75,692 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
p = list(map(int, input().split()))

k = 1
for x in p:
    k *= x

def f(x):
    res = 0
    while x > 0:
        res += x % 10
        x //= 10
    return res
    
while k >= 10:
    k = f(k)

print(k)
0