結果

問題 No.933 おまわりさんこいつです
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-02-14 05:59:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 172 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 19,744 KB
最終ジャッジ日時 2023-09-23 16:41:10
合計ジャッジ時間 6,356 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,328 KB
testcase_01 AC 16 ms
7,832 KB
testcase_02 AC 16 ms
7,908 KB
testcase_03 AC 15 ms
7,852 KB
testcase_04 AC 15 ms
7,908 KB
testcase_05 AC 15 ms
7,784 KB
testcase_06 AC 15 ms
7,820 KB
testcase_07 AC 15 ms
7,736 KB
testcase_08 AC 15 ms
7,860 KB
testcase_09 AC 16 ms
7,780 KB
testcase_10 AC 14 ms
7,796 KB
testcase_11 AC 16 ms
7,736 KB
testcase_12 AC 17 ms
7,780 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 51 ms
17,004 KB
testcase_18 AC 15 ms
7,972 KB
testcase_19 AC 126 ms
19,744 KB
testcase_20 RE -
testcase_21 AC 15 ms
7,848 KB
testcase_22 AC 16 ms
7,780 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
xs=list(map(int,input().split(" ")))
r=1
for x in xs:
	r*=x
while len(str(r))>1:
	r2=str(r)
	r3=0
	for i in range(0,len(r2)):
		r3+=int(r2[i])
	r=r3
print(r)
0