結果

問題 No.484 収穫
ユーザー gew1fw
提出日時 2025-06-12 15:06:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 256 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 82,444 KB
実行使用メモリ 65,680 KB
最終ジャッジ日時 2025-06-12 15:07:20
合計ジャッジ時間 2,200 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
min_time = float('inf')

for i in range(n):
    current_max = 0
    for j in range(n):
        current_max = max(current_max, A[j] + abs(j - i))
    min_time = min(min_time, current_max)

print(min_time)
0