結果

問題 No.933 おまわりさんこいつです
ユーザー izumoizumo
提出日時 2019-11-29 23:05:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 273 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 52,196 KB
最終ジャッジ日時 2024-05-01 00:45:15
合計ジャッジ時間 15,229 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 501 ms
44,056 KB
testcase_01 AC 537 ms
44,048 KB
testcase_02 AC 494 ms
44,052 KB
testcase_03 RE -
testcase_04 WA -
testcase_05 AC 488 ms
44,440 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 RE -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 513 ms
48,408 KB
testcase_18 AC 483 ms
44,168 KB
testcase_19 AC 518 ms
50,200 KB
testcase_20 WA -
testcase_21 AC 488 ms
44,312 KB
testcase_22 AC 489 ms
44,052 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

k=np.prod(p)

while not len(str(k))==1:
    k=sum(list(map(int, str(k))))
    
print(k)
0