結果

問題 No.933 おまわりさんこいつです
ユーザー otsuri_114514
提出日時 2019-11-29 21:57:40
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 728 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 22,148 KB
最終ジャッジ日時 2024-11-20 22:05:15
合計ジャッジ時間 5,485 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#import pysnooper
#import numpy
#import os,re,sys,operator
#from collections import Counter,deque
#from operator import itemgetter
#from itertools import accumulate,combinations,groupby,combinations_with_replacement,permutations
from sys import stdin,setrecursionlimit
#from bisect import bisect_left,bisect_right
#from copy import deepcopy
#import heapq
#import math
#import string
#from time import time
#from functools import lru_cache
setrecursionlimit(10**6)
input=stdin.readline

n=int(input().rstrip())
p=[int(i) for i in input().split()]
tmp=1
for i in p:
    now=i
    while len(str(now))!=1:
        now=sum(list(map(int,str(now))))
    tmp*=now

while len(str(tmp))!=1:
    tmp=sum(list(map(int,str(tmp))))
print(tmp)
0