2010年10月1日金曜日

PKU Judge Online 2027 No Brainer

■2027 No Brainer

□Problem
省略.

□Solution
省略.

□Code
  1. package p2027;  
  2.   
  3. import java.util.*;  
  4. import java.lang.*;  
  5. import java.math.*;  
  6. import java.io.*;  
  7.   
  8. import static java.lang.Math.*;  
  9. import static java.util.Arrays.*;  
  10.   
  11. // AC  
  12. public class Main{  
  13.   
  14.     Scanner sc=new Scanner(System.in);  
  15.   
  16.     final int INF=Integer.MAX_VALUE;  
  17.     final double EPS=1e-9;  
  18.   
  19.     void run(){  
  20.         for(int n=sc.nextInt(); n>0; n--){  
  21.             int x=sc.nextInt();  
  22.             int y=sc.nextInt();  
  23.             println(x<y?"NO BRAINS":"MMM BRAINS");  
  24.         }  
  25.     }  
  26.   
  27.     void print(String s){  
  28.         System.out.print(s);  
  29.     }  
  30.   
  31.     void println(String s){  
  32.         System.out.println(s);  
  33.     }  
  34.   
  35.     public static void main(String[] args){  
  36.         // System.setOut(new PrintStream(new BufferedOutputStream(System.out)));  
  37.         new Main().run();  
  38.     }  
  39. }  

0 件のコメント: