Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Approach

Правка ru1, от improvement_19, 2020-04-09 21:58:11

https://codeforces.me/contest/1291/problem/B Please help I am unable to approach this problem have seen several solution as well as editorial but failed to understand 1)why a[I]>I??what will happen if this not take place? 2)why there checking a[n-i-1] with the value n-i-1 ??what is the use of prefix array and suffix end array??

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
ru1 Русский improvement_19 2020-04-09 21:58:11 341 First edition (опубликовано)