我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Calculate the formula 公式的一个计算

Problem Description
You just need to calculate the sum of the formula: 1^2+3^2+5^2+……+ n ^2.

Input
In each case, there is an odd positive integer n.

Output
Print the sum. Make sure the sum will not exceed 2^31-1

Sample Input
3

Sample Output
10

近期文章

  • Can you find it? 寻找的问题
  • Evolution 进化问题
  • disney 具体实现的方法
  • The most binary substring 如何来编写呢
  • 分数矩阵 的问题
  • Public Sale 具体的实现
  • 超级楼梯 的计算问题
  • 计算球体积 是怎么写的呢
  • android BottomNavigationView + viewpager 对应tab跳转界面问题?
  • spring-kafka做了分区,部分分区数据可以正常消费,部分分区始终无法消费?
  • JSP在页面内显示所有表单信息,对某一行进行修改操作,结果所有数据都进行传值了?
  • 我写了一个题,但编译器提示有很多错误,希望帮忙改改谢谢
  • 交换随机数的名称
  • 使用数组进行多文件上传
  • 网站链接混乱// .htaccess
  • 使用Smtp发送电子邮件的PHP代码
  • 过滤woocommerce_email_actions
  • 数组不使用ajax帖子
  • 没有jquery的Ajax json请求
  • 从关键细节到关键资源

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华