fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4. import java.util.Scanner;
  5.  
  6. class Main
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. int n, m;
  11. double k;
  12. Scanner in = new Scanner(System.in);
  13. n = in.nextInt();
  14. m = in.nextInt();
  15. k = m / n;
  16. if (k >= 1){
  17. int k1 = (m + n - 1) / n;
  18. System.out.print(k1);
  19. }
  20. else System.out.print(1);
  21. }
  22. }
Success #stdin #stdout 0.06s 2249728KB
stdin
20 150
stdout
8