結果
| 問題 | No.933 おまわりさんこいつです |
| コンテスト | |
| ユーザー |
momotaros300
|
| 提出日時 | 2019-11-29 21:50:32 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 423 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 23,352 KB |
| 最終ジャッジ日時 | 2026-09-27 05:50:23 |
| 合計ジャッジ時間 | 7,778 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 RE * 5 TLE * 1 -- * 1 |
ソースコード
#!/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)
momotaros300