結果
| 問題 | No.933 おまわりさんこいつです |
| コンテスト | |
| ユーザー |
takakin
|
| 提出日時 | 2020-05-26 19:24:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 553 ms / 2,000 ms |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 73 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,700 KB |
| 最終ジャッジ日時 | 2024-10-13 02:51:07 |
| 合計ジャッジ時間 | 3,412 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
import sys
input=lambda: sys.stdin.readline().rstrip()
n=int(input())
P=[int(i) for i in input().split()]
def tot(x):
while x>=10:
res=0
for xx in str(x):
res+=int(xx)
x=res
return x
ans=1
for p in P:
ans=tot(ans*p)
print(ans)
takakin