結果

問題 No.933 おまわりさんこいつです
ユーザー ああいいああいい
提出日時 2021-12-05 17:01:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 217 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 13,604 KB
最終ジャッジ日時 2023-09-21 14:06:42
合計ジャッジ時間 6,128 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,996 KB
testcase_01 AC 16 ms
7,808 KB
testcase_02 AC 15 ms
7,804 KB
testcase_03 AC 16 ms
7,784 KB
testcase_04 AC 16 ms
7,816 KB
testcase_05 AC 16 ms
7,884 KB
testcase_06 AC 16 ms
7,800 KB
testcase_07 AC 16 ms
7,864 KB
testcase_08 AC 16 ms
7,832 KB
testcase_09 AC 20 ms
7,940 KB
testcase_10 AC 17 ms
7,816 KB
testcase_11 AC 19 ms
7,804 KB
testcase_12 AC 33 ms
7,776 KB
testcase_13 AC 318 ms
8,304 KB
testcase_14 AC 648 ms
8,676 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()))

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