CF935F Fafa and Array 题解
题目链接:Fafa and
Array
题意:
给出一个序列 \(a\),定义函数 \(f(a)=\sum_{i=1}^{n-1}|a_i-a_{i+1}|\)。
给出两种操作:
\(\
2024-06-22