PersonalCorpus 版 (精华区)

1122060 2002/09/27 08:29:02.120 Accepted
0:00.010 64 18188 C++ 10359 - Tiling

#include "longinteger.c"

void main() {

    struct longinteger a[251];
    int i;

    setoneLI(&a[0]);
    setoneLI(&a[1]);
    for (i=2;i<251;i++) {
        copyLI(&a[i],&a[i-1]);
        addLI2(&a[i],&a[i-2]);
        addLI2(&a[i],&a[i-2]);
    }

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