結果

問題 No.933 おまわりさんこいつです
コンテスト
ユーザー otsuri_114514
提出日時 2019-11-29 21:53:23
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 685 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 606 ms
コンパイル使用メモリ 20,568 KB
実行使用メモリ 37,116 KB
最終ジャッジ日時 2026-05-15 03:19:53
合計ジャッジ時間 8,601 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 RE * 4 TLE * 1 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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:
    tmp*=i
    while tmp%10==0:
        tmp//=10

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