摘要: "A Most Unstable Array" 构造长为n,和为m的数组a,使得相邻元素差的绝对值之和最大。即,需要构造形如(0,x,0,0..)的数组。 + n == 1,ans = 0 + n == 2,ans = m + n 2,ans = 2 m "B Two Arrays And Swap 阅读全文
posted @ 2020-05-19 02:43 jimmy-cat 阅读(139) 评论(0) 推荐(0) 编辑