#1965. 区间最值和的最大值
区间最值和的最大值
当前没有测试数据。
Background
Special for beginners, ^_^
Description
现在有一个长度为 的序列 ,求出一个长度大于等于 的区间使得这个区间内的最大值与最小值的和最大,你需要求出这个和。
Format
Input
Two integers x and y, satisfying .
Output
One integer, the sum of x and y.
Samples
123 500
623
Limitation
1s, 1024KiB for each test case.