結果

問題 No.318 学学学学学
ユーザー tktk_snsn
提出日時 2020-12-15 21:30:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,816 KB
最終ジャッジ日時 2024-09-20 02:17:11
合計ジャッジ時間 5,525 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import accumulate
n = int(input())
A = list(map(int, input().split()))

B = list(accumulate(A, func=max))
C = list(accumulate(A[::-1], func=max))[::-1]

ans = [min(b, c) for b, c in zip(B, C)]
print(*ans)
0