結果

問題 No.933 おまわりさんこいつです
ユーザー U SU S
提出日時 2019-11-29 23:35:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,035 ms / 2,000 ms
コード長 309 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 21,576 KB
最終ジャッジ日時 2023-08-13 06:54:39
合計ジャッジ時間 4,327 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,892 KB
testcase_01 AC 16 ms
7,928 KB
testcase_02 AC 16 ms
7,792 KB
testcase_03 AC 16 ms
7,840 KB
testcase_04 AC 16 ms
7,788 KB
testcase_05 AC 16 ms
7,836 KB
testcase_06 AC 17 ms
7,848 KB
testcase_07 AC 16 ms
7,928 KB
testcase_08 AC 17 ms
7,844 KB
testcase_09 AC 16 ms
7,932 KB
testcase_10 AC 16 ms
7,792 KB
testcase_11 AC 17 ms
7,832 KB
testcase_12 AC 19 ms
7,888 KB
testcase_13 AC 32 ms
8,380 KB
testcase_14 AC 39 ms
8,576 KB
testcase_15 AC 66 ms
9,148 KB
testcase_16 AC 186 ms
11,588 KB
testcase_17 AC 73 ms
17,132 KB
testcase_18 AC 15 ms
7,800 KB
testcase_19 AC 134 ms
19,640 KB
testcase_20 AC 181 ms
9,868 KB
testcase_21 AC 15 ms
7,792 KB
testcase_22 AC 15 ms
7,876 KB
testcase_23 AC 1,017 ms
21,576 KB
testcase_24 AC 1,035 ms
21,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
p = list(map(int,input().split()))
ans = 1
for i in range(n):
    ans *= p[i]
    while ans >= 10:
        str_ans = str(ans)
        str_ans_list = list(str_ans)
        wa = 0
        for j in range(len(str_ans_list)):
            wa += int(str_ans_list[j])
            ans = wa
print(ans)
0