結果
問題 |
No.484 収穫
|
ユーザー |
![]() |
提出日時 | 2025-06-12 19:52:35 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 334 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 82,180 KB |
実行使用メモリ | 64,280 KB |
最終ジャッジ日時 | 2025-06-12 19:53:21 |
合計ジャッジ時間 | 2,191 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 8 |
ソースコード
n = int(input()) A = list(map(int, input().split())) min_total = float('inf') for i in range(n): current_max = 0 for j in range(n): dist = abs(i - j) val = A[j] + dist if val > current_max: current_max = val if current_max < min_total: min_total = current_max print(min_total)