結果

問題 No.933 おまわりさんこいつです
ユーザー momotaros300
提出日時 2019-11-29 21:50:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 423 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 33,408 KB
最終ジャッジ日時 2024-11-20 21:56:34
合計ジャッジ時間 8,872 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 RE * 5 TLE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans =tmp=0
count = 1

n=int(input())
P=list(map(int,input().split()))
for i in range(n):
    count*=P[i]
while len(str(count))!=1:
    tmp=0
    for si in str(count):
        tmp+=int(si)
    count=tmp
print(count)
# print(ans)
0