結果

問題 No.933 おまわりさんこいつです
ユーザー neterukunneterukun
提出日時 2019-11-29 21:48:06
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 246 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 82,284 KB
実行使用メモリ 268,200 KB
最終ジャッジ日時 2024-04-30 23:18:45
合計ジャッジ時間 6,256 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
59,908 KB
testcase_01 AC 38 ms
52,220 KB
testcase_02 AC 39 ms
53,080 KB
testcase_03 AC 39 ms
52,424 KB
testcase_04 AC 38 ms
52,828 KB
testcase_05 AC 38 ms
52,548 KB
testcase_06 AC 39 ms
52,160 KB
testcase_07 AC 39 ms
52,544 KB
testcase_08 AC 38 ms
53,140 KB
testcase_09 AC 39 ms
54,068 KB
testcase_10 AC 39 ms
53,940 KB
testcase_11 AC 43 ms
58,544 KB
testcase_12 AC 44 ms
59,016 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 70 ms
85,812 KB
testcase_18 AC 38 ms
51,880 KB
testcase_19 AC 155 ms
89,396 KB
testcase_20 RE -
testcase_21 AC 39 ms
52,412 KB
testcase_22 AC 38 ms
52,952 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = 1
for i in range(n):
    ans *= p[i]

while True:
    if len(str(ans)) == 1:
        print(ans)
        break
    tmp = 0
    for i in str(ans):
        tmp += int(i)
    ans = tmp

    
0