Toggle navigation
Discord
YouTube
Facebook
Instagram
english
english
українська
Algotester 4.6
Build 667
2025-06-30
Log In
Contact Us
College
Sponsors
Donate
Sources
PyPy (Python 3.6 with GCC 7.4)
n = int(input()) a = list(map(int, input().split())) b = [a[i] - i for i in range(n)] print(max(b) - min(b))