Tính tổng S = n+n1+...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) = n+n1+...2+1n 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
2.18

Comments

Please read the guidelines before commenting.


There are no comments at the moment.