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

来源:互联网 发布:mac版的au啥意思 编辑:程序博客网 时间:2024/06/08 04:08

思路:第一次在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;}

原创粉丝点击