您的位置:首页 > 其它

hdoj 1037 Keep on Truckin'(巨水无比)

2017-12-11 15:25 323 查看
思路:第一次在hdoj上遇到这么水的。。。。正常输入输出就好

代码如下:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[])
{
int a,b,c;
while(scanf("%d%d%d",&a,&b,&c)!=EOF)
{
if(a<=168)
{
printf("CRASH %d\n",a);
continue;
}
if(b<=168)
{
printf("CRASH %d\n",b);
continue;
}
if(c<=168)
{
printf("CRASH %d\n",c);
continue;
}
else
{
printf("NO CRASH\n");
}

}

return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: