HDU 5879 Cure .
来源:互联网 发布:金数据登录 编辑:程序博客网 时间:2024/05/17 13:13
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=5879
#include<iostream>#include<cstdio>#include<cmath>#include<string>using namespace std;typedef long long LL;double f[1000000+5];string s;int Read(){int n=0;if(s.size()>=7) return 1000000;for(int i=0;i<s.size();i++)n=n*10+s[i]-'0';return n;}int main(){int n;for(int i=1;i<=1000000;i++) f[i]=1.0/((LL)i*i)+f[i-1];while(cin>>s){n=Read();printf("%.5lf\n",f[n]);}return 0;}
0 0
- hdu 5879 Cure
- HDU 5879 Cure【数论】
- HDU 5879 Cure
- HDU 5879 Cure
- hdu 5879 Cure
- HDU 5879 Cure
- HDU 5879 Cure .
- HDU-5879-Cure
- HDU 5879 Cure (数学)
- HDU 5879 Cure(数学)
- hdu 5879 Cure 打表
- hdu 5879 -Cure 暴力打表
- HDU-5879 Cure(精度)(极限)
- 【HDU 5879】Cure(暴力+优化)
- HDU 5879 Cure(打表预处理)
- HDU 5879 Cure 青岛网络赛
- [HDU 5879] Cure (数学+打表)
- HDU 5879 Cure(打表)qingdao网赛
- UML类图
- hadoop集群搭建 mac
- volatile和synchronized的区别
- 《C++ Primer》读书笔记——第八章_IO库
- iOS常用的第三方库
- HDU 5879 Cure .
- Mac下安装JDK过程及相关Mac命令备忘
- Objective-C基础
- Toolbar+NavigationView实现抽屉式菜单
- Android中的Shape使用总结
- 计算机基础,数字在计算机中是怎么表示的
- JAVA设计模式---单态模式理解
- 231. Power of Two
- C++动态数组