0
点赞
收藏
分享

微信扫一扫

P5724 【深基4.习5】求极差 最大跨度值(python3实现)

zibianqu 2022-01-30 阅读 54

https://www.luogu.com.cn/problem/P5724

"""
P5724 【深基4.习5】求极差  最大跨度值
https://www.luogu.com.cn/problem/P5724

"""

n=int(input())

a=list(map(int,input().split()))

a.sort()

ans=a[n-1]-a[0]

print(ans)


举报

相关推荐

0 条评论