2011年2月20日日曜日

Aizu Online Judge 0148 Candy and Class Flag

■0148 Candy and Class Flag

やるだけ.

  1. import java.util.*;  
  2. import java.lang.*;  
  3. import java.math.*;  
  4. import java.io.*;  
  5.   
  6. import static java.lang.Math.*;  
  7. import static java.util.Arrays.*;  
  8.   
  9. public class Main{  
  10.   
  11.  Scanner sc=new Scanner(System.in);  
  12.   
  13.  int INF=1<<28;  
  14.  double EPS=1e-9;  
  15.   
  16.  void run(){  
  17.   for(; sc.hasNext();){  
  18.    println(String.format("3C%02d", (sc.nextInt()-1)%39+1));  
  19.   }  
  20.  }  
  21.   
  22.  void debug(Object... os){  
  23.   System.err.println(Arrays.deepToString(os));  
  24.  }  
  25.   
  26.  void print(String s){  
  27.   System.out.print(s);  
  28.  }  
  29.   
  30.  void println(String s){  
  31.   System.out.println(s);  
  32.  }  
  33.   
  34.  public static void main(String[] args){  
  35.   // System.setOut(new PrintStream(new BufferedOutputStream(System.out)));  
  36.   new Main().run();  
  37.  }  
  38. }  

0 件のコメント: