結果

問題 No.933 おまわりさんこいつです
ユーザー usayomousayomo
提出日時 2019-11-29 22:27:34
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 185 bytes
コンパイル時間 596 ms
コンパイル使用メモリ 82,536 KB
実行使用メモリ 268,064 KB
最終ジャッジ日時 2024-05-01 00:36:30
合計ジャッジ時間 6,251 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
59,556 KB
testcase_01 AC 39 ms
52,388 KB
testcase_02 AC 39 ms
52,472 KB
testcase_03 AC 39 ms
52,296 KB
testcase_04 AC 39 ms
53,160 KB
testcase_05 AC 40 ms
51,936 KB
testcase_06 AC 40 ms
53,416 KB
testcase_07 AC 39 ms
52,928 KB
testcase_08 AC 39 ms
52,768 KB
testcase_09 AC 40 ms
52,332 KB
testcase_10 AC 40 ms
52,836 KB
testcase_11 AC 44 ms
58,292 KB
testcase_12 AC 45 ms
61,004 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 75 ms
85,932 KB
testcase_18 AC 39 ms
53,028 KB
testcase_19 AC 166 ms
89,240 KB
testcase_20 RE -
testcase_21 AC 38 ms
52,964 KB
testcase_22 AC 39 ms
52,120 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
P = list(map(int, input().split()))

K = 1
for p in P:
    K *= p

age = K
while len(str(age)) > 1:
    tmp = [int(s) for s in str(age)]
    age = sum(tmp)

print(age)
0