Tính tổng S = 12 + 23 + … + nn+1

View as PDF

Submit solution

Points: 100.00
Time limit: 1.0s
Memory limit: 100M
Input: stdin
Output: stdout

Author:
Problem type
Allowed languages
C, C++, GAS64, Pascal, Perl, PHP, Python, Sed, TCL, Text

Tính S(n) = 12 + 23 + 34 + … + nn+1. Với n cho trước.

  • Đầu vào là 1 số 𝑛
  • Đầu ra là kết quả 𝑆

Lưu ý: Giá trị S chỉ làm tròn còn 2 số thập phân

Input

Copy
3

Output

Copy
1.92

Input

Copy
10

Output

Copy
7.98

Comments

Please read the guidelines before commenting.


There are no comments at the moment.