题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1037
本题英文阅读理解题目。
#include<stdio.h>
#include<string.h>
#include<algorithm>
//#define LOCAL
using namespace std;
int main(){
#ifdef LOCAL
freopen("input.txt","r",stdin);
#endif // LOCAL
int height[3];
memset(height,0,sizeof(height));
const int truck_height=168;
int a,b,c;
while(scanf("%d %d %d",&a,&b,&c)!=EOF){
height[0]=a,height[1]=b;height[2]=c;
sort(height,height+3);
int crash=0;
for(int i=0;i<3;i++){
if(height[i]<truck_height){
printf("CRASH %d\n",height[i]);
crash=1;
break;
}
}
if(crash==0)
printf("NO CRASH\n");
}
return 0;
}