Poj Solution 2578

http://poj.org/problem?id=2578

//* @author ������<hongxp11@163.com>
import java.util.Scanner;


public class Main {

/**
 * @param args
 */
public static void main(String[] args) {
    // TODO Auto-generated method stub
    Scanner in  = new Scanner(System.in);
    int height = 168;
    int crash = 0;
    for(int i = 0; i< 3; i++){
        int temp = in.nextInt();
        if(temp<=height){
          System.out.println("CRASH "+temp);
          crash=1;
          break;
        }
    }
    if(crash==0)
        System.out.println("NO CRASH");
 }

}

											
This entry was posted in poj. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *