zoukankan      html  css  js  c++  java
  • 杭电acm 1037题

    本题应该是迄今为止最为简单的一道题,只有一组输入,输出也简单....

     1 /******************************************
     2 杭电acm 1037题 已AC
     3 *****************************************/
     4 #include "iostream"
     5 
     6 using namespace std;
     7 
     8 int main(void)
     9 {
    10     int height[3];
    11     int wheel=168;
    12     cin>>height[0]>>height[1]>>height[2];
    13     for(int i=0;i<3;i++)
    14     {
    15         if(wheel>height[i])
    16         {
    17             cout<<"CRASH "<<height[i]<<endl;
    18             break;
    19         }
    20         else if(i==2)
    21             cout<<"NO CRASH"<<endl;
    22         else continue;
    23     }
    24     return 0;
    25 }

    虽然比较简单,但还是记录下来,从简单做起...

  • 相关阅读:
    Facade
    Adapter
    Bridge
    Factory
    Singleton
    Decorator
    Template Method
    设计模式
    寻找最小的k个数
    java并发编程(4)--线程池的使用
  • 原文地址:https://www.cnblogs.com/kb342/p/3665949.html
Copyright © 2011-2022 走看看