結果
| 問題 |
No.933 おまわりさんこいつです
|
| コンテスト | |
| ユーザー |
fuppy_kyopro
|
| 提出日時 | 2019-11-29 22:06:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 269 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 312,776 KB |
| 最終ジャッジ日時 | 2024-11-20 22:20:27 |
| 合計ジャッジ時間 | 17,716 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 TLE * 5 |
ソースコード
n = int(input())
p = list(map(int, input().split()))
k = 1
for x in p:
k *= x
def f(x):
res = 0
while x > 0:
res += x % 10
x //= 10
return res
while k >= 10:
k = f(k)
print(k)
fuppy_kyopro