mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
55762be649
2400-2499
15 lines
256 B
C++
15 lines
256 B
C++
#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 ;
|
|
}
|