CodeMan
Home
Uva
AtCoder
Codechef
Codeforce
Hackerrank
LeetCode
Devskill
TopCoder
Spoj
Algorithm
Python3
Hackerearth
Uri
C++
Data Structure
Saturday, August 27, 2016
uri- 1155 - S Sequence
#include<cstdio>
int main()
{
double s=1.0;
for(int i=2;i<=100;i++){
s+=1.0/(double) i;
}
printf("%.2lf\n",s);
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment