結果

問題 No.933 おまわりさんこいつです
ユーザー titiatitia
提出日時 2019-11-29 23:23:11
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 158 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 82,420 KB
実行使用メモリ 268,208 KB
最終ジャッジ日時 2024-05-01 00:47:45
合計ジャッジ時間 6,079 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
58,960 KB
testcase_01 AC 36 ms
52,300 KB
testcase_02 AC 35 ms
52,372 KB
testcase_03 AC 36 ms
53,412 KB
testcase_04 AC 37 ms
52,456 KB
testcase_05 AC 38 ms
52,440 KB
testcase_06 AC 36 ms
52,724 KB
testcase_07 AC 37 ms
52,496 KB
testcase_08 AC 37 ms
52,284 KB
testcase_09 AC 36 ms
52,556 KB
testcase_10 AC 42 ms
53,636 KB
testcase_11 AC 40 ms
59,936 KB
testcase_12 AC 41 ms
59,620 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 66 ms
85,848 KB
testcase_18 AC 36 ms
53,136 KB
testcase_19 AC 155 ms
89,052 KB
testcase_20 RE -
testcase_21 AC 37 ms
52,796 KB
testcase_22 AC 36 ms
52,372 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
P=list(map(int,input().split()))
A=1
for p in P:
    A*=p

while len(str(A))>1:
    Q=0
    for q in str(A):
        Q+=int(q)
    A=Q
print(A)
0