結果

問題 No.933 おまわりさんこいつです
ユーザー 双六双六
提出日時 2020-07-27 22:56:00
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 420 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 266,720 KB
最終ジャッジ日時 2023-09-11 06:05:37
合計ジャッジ時間 9,301 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
75,976 KB
testcase_01 AC 93 ms
71,472 KB
testcase_02 AC 95 ms
71,404 KB
testcase_03 AC 94 ms
71,408 KB
testcase_04 AC 93 ms
71,316 KB
testcase_05 AC 94 ms
71,860 KB
testcase_06 AC 94 ms
71,624 KB
testcase_07 AC 94 ms
71,672 KB
testcase_08 AC 95 ms
71,624 KB
testcase_09 AC 96 ms
71,472 KB
testcase_10 AC 94 ms
71,600 KB
testcase_11 AC 114 ms
76,632 KB
testcase_12 AC 101 ms
76,528 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 127 ms
88,692 KB
testcase_18 AC 98 ms
71,468 KB
testcase_19 AC 217 ms
92,888 KB
testcase_20 RE -
testcase_21 AC 98 ms
71,620 KB
testcase_22 AC 96 ms
71,472 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys; input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	N = int(input())
	P = getlist()
	v = 1
	for i in P:
		v *= i

	while True:
		if v <= 9:
			print(v)
			return

		v = sum(list(map(int, list(str(v)))))


if __name__ == '__main__':
	main()
0