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

Counting Triangles

Given an equilateral triangle with n the length of its side, program to count how many triangles in it.

Input

The length n (n <= 500) of the equilateral triangle's side, one per line.

process to the end of the file

Output

The number of triangles in the equilateral triangle, one per line.

Sample Input

1
2
3

Sample Output

1
5
13

http://blog.csdn.net/libin56842/article/details/9067075

近期文章

  • Bone Sort
  • php微信接口二维码问题
  • SSH2三大框架整合警告的理解:请指教,这是警告,会影响后续开发吗?
  • Gap
  • 进入网页,ajax自动识别是否为关注或未关注(仿微博)
  • gitlab 收不到注册邮件
  • Molecular Formula
  • Timetable
  • Arctic Network
  • redis 集群环境下是单线程还时多线程
  • opencv里用不了IMread和imshow namewindow等函数
  • 求教一个关于客户端与服务器端交互的问题
  • Count the Colors
  • appium运行python脚本时出现 cannot import name webdriver
  • 这是代码检查器的bug吗?
  • 向大神求助!!ubuntu不能连接wifi
  • java 泛型的类型转换异常
  • Temple of Dune
  • 初做后端,请教大神sql业务逻辑——单表选择(oracle,mybatis)
  • Two Pipelines

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华