Java Buổi 1 Bài 1
LÀM BÀI
Points:
10
Time limit:
1.0s
Java 10
5.0s
Java 11
5.0s
Memory limit:
20M
Java 10
64M
Java 11
64M
Author:
Problem type
\(Sn\) = \(1/(1∗2) + 1/(2∗)3 + 1/(3∗4) + ..... + 1/n∗(n+1)\)
Input
Số nguyên dương \(n\). ( \(1 ≤ n ≤ 109 \)).
Output
Kết quả của bài toán lấy độ chính xác 2 chữ số
Ví dụ
Input
99
Output
0.99
There is a critical bug in this problem. Please contact the problem author to fix it.
Comments