1794Counting Triangles

1794   Counting Triangles

题目描述

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

输入格式:

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

process to the end of the file

输出格式:

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

输入样例 复制
1
2
3
输出样例 复制
1
5
13

说明

4
14
通过提交
时空限制2000ms/64mb
题目来源
评测方式在线评测
题目类型
难        度