HDU 2407 Knots

http://acm.hdu.edu.cn/showproblem.php?pid=2407

yy题

View Code
#include <iostream>
using namespace std ;
int main()
{
    int n ;
    while(~scanf("%d",&n))
    {
        double ans=1 ;
        for(int i=n-1;i>=2;i-=2)
            ans*=(i-1)*1.0/i ;
        printf("%.5lf\n",ans) ;
    }
    return 0 ;
} 
原文地址:https://www.cnblogs.com/xiaohongmao/p/2551615.html