long sum = (long)Math.pow(n,3);int a1 = (int)sum/n - (n - 1); n的三次方再除以n,不就是n*n吗?
点赞

相关推荐

点赞 评论 收藏
转发
牛客网
牛客企业服务