PersonalCorpus 版 (精华区)

1127557 Big Guava ... 10303 Accepted
0:00.030 1020 2002/09/28 22:20:40.128

#include "longinteger.c"

void main()
{
#ifndef ONLINE_JUDGE
    freopen("c:\\0acm\\uva\\i10303","r",stdin);
    freopen("c:\\0acm\\uva\\o10303","w",stdout);
#endif

    struct longinteger s[1001], t;
    int i,k;
    setoneLI(&s[0]);
    setoneLI(&t);
    for (i=1;i<1001;i++) {
        mulLI2(&t,4*i-2);
        divLI2(&t,i,k);
        copyLI(&s[i],&t);
        divLI2(&s[i],i+1,k);
    }

    while (scanf("%d\n",&k)==1) {
        printLI(&s[k]);
        printf("\n");
    }
}
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.296毫秒