結果

問題 No.933 おまわりさんこいつです
ユーザー toshiro_yanagi
提出日時 2025-04-09 07:26:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 284 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2025-04-09 07:26:53
合計ジャッジ時間 2,964 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

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.pop()
print(fun_main([*map(int, input().split())]))
0