[Login|Register]
New post

Show post

Search forum

Read post
这样写居然也超时了 [ Topic ] 2013-04-26 14:17:11 cxmhustc
#include <stdio.h>

int main()
{
    int i;
    while(scanf("%d", &i))
    {
        switch(i)
        {
        case 0: printf("The Fibonacci number for 0 is 0\n"); break;
        case 1: printf("The Fibonacci number for 1 is 1\n"); break;
....
case 40: printf("The Fibonacci number for 40 is 102334155\n"); break;
        }
    }
    return 0;
}
Reply
Title
Message
(64K)
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 1.2ms with 2 query(s).