fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Main
  6. {
  7. public static void main (String[] args)
  8. {
  9. Scanner sc = new Scanner(System. in );
  10. long a = sc.nextInt();
  11. long b = sc.nextInt();
  12. if(b != 0) System.out.print(a/b);
  13. else System.out.print("ERROR");
  14. }
  15. }
Success #stdin #stdout 0.1s 35472KB
stdin
6 0
stdout
ERROR