Time Limit : 3000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 8 Accepted Submission(s) : 2 Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description Given an integer n, we only want to know the sum of 1/k2 where k from 1 to n.
There are multiple cases. For each test case, there is a single line, containing a single positive integer n. The input file is at most 1M.
The required sum, rounded to the fifth digits after the decimal point.
1 2 4 8 15
1.00000 1.25000 1.42361 1.52742 1.58044
笔记:错了好几次,坑点1:输入一定要用字符串; 坑点2:将每个答案先存储起来; 坑点3:大概当n=150000时,后面的数约等于0。
