2 条题解

  • 0
    @ 2025-10-17 21:10:20
    #include <stdio.h>
    int main() {
        int n;
        int fib[20] = { 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765};
        scanf("%d", &n);
        printf("%d\n", fib[n-1]);
         return 0;
    }

    信息

    ID
    230
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    660
    已通过
    277
    上传者