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;
}
代码如下:#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;
}
相关文章推荐
- hdoj 1037 Keep on Truckin'(zz)
- HDOJ 1037 Keep on Truckin'
- [HDOJ]1037. Keep on Truckin'
- HDOJ1037 Keep on Truckin'
- HDU 1037 Keep on Truckin' 水题
- HDU 1037 Keep on Truckin'
- hdu 1037 Keep on Truckin'(水题)
- HDU 1037 Keep on Truckin' (水题)
- ACM--是否大于168--HDOJ 1037--Keep on Truckin'--水
- HDOJ 1037 Keep on Truckin'
- 1037 Keep on Truckin'
- HDU 1037 Keep on Truckin'(水题)
- hdu-1037-Keep on Truckin'
- 1037 Keep on Truckin'
- 杭电1037——Keep on Truckin'(简单题)
- hdoj1037
- hdoj 1037 今年暑假不AC (区间问题 至少问题)
- HDU 1037 Keep on Truckin'
- HDU—— 1037 Keep on Truckin'
- hdu 1037 Keep on Truckin'