已A,此贴就当警示后人吧。还要判断 $a_i$ 全为正或负的情况。[评测记录](https://www.luogu.com.cn/record/129306978) by Voluminousness @ 2023-10-14 15:31:04