Tính tổng S = 12 + 34 + … + 2n+12n+2

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 + 34 + 56 + … + 2n+12n+2. 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
2.96

Input

Copy
10

Output

Copy
9.49

Comments

Please read the guidelines before commenting.


There are no comments at the moment.