您的位置:首页 > 其它

51nod 1639: 绑鞋带

2017-02-15 16:33 225 查看
题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1639

#include <bits/stdc++.h>
using namespace std;
typedef long long LL;

double ans[1005];

int main()
{
ans[1]=1;
for(int i=2;i<=1000;i++)
ans[i]=ans[i-1]*2*(i-1)/(2*i-1);

int n;
while(cin>>n)
cout<<ans
<<endl;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: