hdu 5879 Cure 2016ACM/ICPC青岛赛区网络赛1002
来源:互联网 发布:安装ubuntu分区顺序 编辑:程序博客网 时间:2024/05/15 12:54
Problem Description
Given an integer n , we only want to know the sum of 1/k2 where k from 1 to n .
Input
There are multiple cases.
For each test case, there is a single line, containing a single positive integern .
The input file is at most 1M.
For each test case, there is a single line, containing a single positive integer
The input file is at most 1M.
Output
The required sum, rounded to the fifth digits after the decimal point.
Sample Input
124815
Sample Output
1.000001.250001.423611.527421.58044
小数据暴力一下,k->inf的时候数列之和收敛π^2/6【当时是敲了个暴力然后把1000w以上的直接用1000w输出了】
0 0
- hdu 5879 Cure 2016ACM/ICPC青岛赛区网络赛1002
- hdu 5879 Cure -ICPC网络赛青岛赛区
- HDU 5879 - Cure【2016 ACM 区域赛青岛赛区网络赛】
- 2016ICPC青岛赛区网络赛 1002
- 2016 ACM/ICPC 青岛赛区网络赛 XM Reserves
- hdu 5878 I Count Two Three 2016ACM/ICPC青岛赛区网络赛1001
- hdu 5881 Tea 2016ACM/ICPC青岛赛区网络赛1004
- hdu 5882 Balanced Game 2016ACM/ICPC青岛赛区网络赛1005
- hdu 5883 The Best Path 2016ACM/ICPC青岛赛区网络赛1006
- hdu 5884 Sort 2016ACM/ICPC青岛赛区网络赛1007
- hdu 5889 Barricade 2016ACM/ICPC青岛赛区网络赛1011
- hdu 5886 Tower Defence 2016ACM/ICPC青岛赛区网络赛1009
- HDU 5879 Cure 青岛网络赛
- 2016ICPC青岛赛区网络赛 1001
- 2016ICPC青岛赛区网络赛 1004
- hdu 5883 The Best Path-ICPC网络赛青岛赛区
- 2016 ACM/ICPC 青岛赛区网络赛 I Count Two Three
- 2016 ACM-ICPC 亚洲区(青岛赛区)现场赛
- 面向对象
- Unity资源热更之AssetBundle(2)———旧版本AssetBundle
- MacBook Air 13.3系统恢复及Windows 10安装心得
- 学习整理——Java序列化
- hdu 5878 I Count Two Three 2016ACM/ICPC青岛赛区网络赛1001
- hdu 5879 Cure 2016ACM/ICPC青岛赛区网络赛1002
- UE4修改源码对项目进行加密
- 自学计算机基础
- hdu 5881 Tea 2016ACM/ICPC青岛赛区网络赛1004
- hdu5878 I Count Two Three(水题)
- 抽象类
- 快速排序怎么写?
- [HDU 5886] Tower Defence (树形DP)
- POJ 5883 并查集+欧拉路