我也是这个思路,原因是n要转为long long,不然n * n+1 * 2n+1会溢出,要改成long long
点赞 4

相关推荐

牛客网
牛客企业服务