結果
問題 |
No.484 収穫
|
ユーザー |
![]() |
提出日時 | 2025-06-12 19:51:15 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 328 bytes |
コンパイル時間 | 209 ms |
コンパイル使用メモリ | 81,992 KB |
実行使用メモリ | 65,296 KB |
最終ジャッジ日時 | 2025-06-12 19:51:23 |
合計ジャッジ時間 | 2,286 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 8 |
ソースコード
n = int(input()) A = list(map(int, input().split())) min_T = float('inf') for s in range(1, n + 1): current_max = 0 for i in range(1, n + 1): d = abs(i - s) val = A[i-1] + d if val > current_max: current_max = val if current_max < min_T: min_T = current_max print(min_T)