[Login|Register]
New post

Show post

Search forum

Read 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;
}
Re:这样写居然也超时了 2013-11-06 12:19:36 lerence1201
显然超时!!!
Reply
Title
Message
(64K)
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 2.1ms with 1 query(s).