Rosetta Problems

快乐子数组

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