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

Calculate S(n) 怎么计算的呢

Problem Description
Calculate S(n).

S(n)=13+23 +33 +......+n3 .

Input
Each line will contain one integer N(1 < n < 1000000000). Process to end of file.

Output
For each case, output the last four dights of S(N) in one line.

Sample Input
1
2

Sample Output
0001
0009

近期文章

  • Error Curves 代码的完成
  • Go Deeper
  • Arranging Your Team 排列算法
  • Android 调用 wsdl ,在ht.call 出现 source not found
  • Building Roads 程序的编程
  • An ant's story
  • Legal or Not 一个判断的问题
  • #define is unsafe 代码的问题
  • lazy gege 具体的思路
  • Trip the Lights Fantastic 这个怎么实现的
  • Kakuro Extension Extension 是怎么编的呢
  • War Chess 程序的弄法
  • 后台没有报错,访问JSP页面一直报404,Tomcat自带主页能正常访问
  • Probability One 怎么来编写的呢
  • Hop — Don’t Walk! 程序的不会怎么写
  • Land Division
  • 如何获取Laravel 4控制器中一系列复选框的值(如果选中)
  • 当一个类可以有多个定义时,如何在symfony 4中声明服务
  • 如何在php和ajax中创建一个注册页面,检查某个用户名是否已经存在而没有页面刷新?
  • 关于在mysql数据库中存储PHP支持的时区的最佳实践

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华