結果
| 問題 |
No.933 おまわりさんこいつです
|
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2025-04-09 07:28:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 534 ms / 2,000 ms |
| コード長 | 280 bytes |
| コンパイル時間 | 374 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 22,284 KB |
| 最終ジャッジ日時 | 2025-04-09 07:28:43 |
| 合計ジャッジ時間 | 3,571 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
def f2(x):
d, m = divmod(x, 10)
return d + m
def f(x):
while x >= 10:
x = f2(x)
return x
def fun_main(p):
while len(p) > 1:
p[-2] *= f(p[-1])
p.pop()
return f(p.pop())
_ = input()
print(fun_main([*map(int, input().split())]))
toshiro_yanagi