Tính tổng S = 2+2+...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++, C++ (Themis), GAS64, Pascal, Perl, PHP, Python, Sed, TCL, Text

Tính S(n) = 2+2+...2+2n dấu căn. Với n là số nguyên dương cho trước.

  • Đầu vào là 1 số n
  • Đầu ra là kết quả S và chỉ làm tròn 2 số phần thập phân.

Input

Copy
3

Output

Copy
1.96

Comments

Please read the guidelines before commenting.


There are no comments at the moment.