fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. Scanner sc = new Scanner ( System.in);
  14. int m = Integer.parseInt ( sc.nextLine());
  15.  
  16. int n = m%1440;
  17. int o = n%60;
  18. int k = n/60;
  19.  
  20. System.out.println(o);
  21. System.out.println(k);
  22.  
  23. }
  24. }
Success #stdin #stdout 0.07s 4386816KB
stdin
190
stdout
10
3