Rosetta Problems

数列分段 II

https://www.acwing.com/problem/content/4181