题解:
答案就是n*(n+1)/2/(2*n-1)
代码:
#include<bits/stdc++.h> double n; int main() { scanf("%lf",&n); printf("%.9lf",n*(n+1)/2/(2*n-1)); }
bzoj4001
原文:http://www.cnblogs.com/xuanyiming/p/7747178.html