杭电1037

/*********************************
 *    日期:2011-3-1
 *    作者:SJF
 *    题号:杭电1037
 *    题目:Keep on Truckin'
 *    结果:AC
 *    注意:
**********************************/
#include<stdio.h>
#include<time.h>
int main()
{
    int a,b,c;
    while(scanf("%d %d %d",&a,&b,&c)!=EOF)
    {
        if(a<168)
        {
            printf("CRASH %d\n",a);
        }
        else
        {
            if(b<168)
            {
                printf("CRASH %d\n",b);
            }
            else
            {
                if(c<168)
                {
                    printf("CRASH %d\n",c);
                }
                else
                {
                    printf("NO CRASH\n");
                }
            }
        }
        //printf("Time used = %lf\n",(double)clock()/CLOCKS_PER_SEC);
    }
    return 0;
}

 

posted @ 2011-10-28 13:39  爱生活,爱编程  阅读(119)  评论(0编辑  收藏  举报