Tổng dãy số lẻ


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 1G

Problem type

Cho số nguyên $N$. Hãy tính tổng $S=1+3+5+...+(2N-1)$.

Dữ liệu

  • Số nguyên dương duy nhất $N \ (3\le N \le 10^9)$.

Kết quả

  • Kết quả bài toán.

Ví dụ

Ví dụ 1

input

3

output

9

Comments

There are no comments at the moment.