Tổng bình phương

View as PDF

Points: 3 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Bài 7: Tổng bình phương

  • Mô tả: Tính \(S = 1^2 + 2^2 + ... + N^2\).
  • Dữ liệu vào: \(1 \le N \le 10^5\).
  • Dữ liệu ra: Kết quả tổng \(S\).
  • Ví dụ: Vào 3 -> Ra 14.

Comments

Most recent
Loading comments...

There are no comments at the moment.