結果

問題 No.933 おまわりさんこいつです
ユーザー onsen_manjuuuonsen_manjuuu
提出日時 2020-11-21 20:43:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 194 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 13,812 KB
最終ジャッジ日時 2023-09-30 22:17:37
合計ジャッジ時間 6,157 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,380 KB
testcase_01 AC 15 ms
7,864 KB
testcase_02 AC 15 ms
7,812 KB
testcase_03 AC 15 ms
7,956 KB
testcase_04 AC 15 ms
7,880 KB
testcase_05 AC 15 ms
7,972 KB
testcase_06 AC 15 ms
7,860 KB
testcase_07 AC 15 ms
7,832 KB
testcase_08 AC 16 ms
7,864 KB
testcase_09 AC 16 ms
7,852 KB
testcase_10 AC 15 ms
7,956 KB
testcase_11 AC 19 ms
7,856 KB
testcase_12 AC 28 ms
7,880 KB
testcase_13 AC 318 ms
8,308 KB
testcase_14 AC 647 ms
8,644 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()))
pi = 1

for i in P:
    pi *= i

while pi > 9:
    nxt = 0
    while pi:
        nxt += pi % 10
        pi = pi // 10
    pi = nxt

print(pi)
0