https://www.luogu.com.cn/blog/494699/solution-p9473
这篇题解中得结论没有给详细证明,而且也过不了此 hack 数据:
输入:
1 3 4 9 25
输出:
Yes