Harbour.Space Scholarship Contest 2023-2024 (Div. 1 + Div. 2) 简单题解
A.IncreasingandDecreasing题意:给定三个数字x,y,nx,y,nx,y,n。要求去构造一个数组a,满足a1=x,an=ya_1=x,a_n=ya1=x,an=ya1b2>⋯>bnb_i=a_{i+1}-a_i,b_1>b_2>\cdots>b_nbi=ai+1−ai,b1>b2>⋯>bn思路:从后往前去,−1,−2,−3-1,-2,-3−1,−2,−3,构造即可,最后如果a