結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
![]() |
提出日時 | 2019-11-29 21:53:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 685 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 32,584 KB |
最終ジャッジ日時 | 2024-11-20 21:59:07 |
合計ジャッジ時間 | 19,451 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 RE * 5 TLE * 5 |
ソースコード
#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)