fork download
  1. import java.util.*;
  2.  
  3. class Task1
  4. {
  5. public static void main (String[] args)
  6. {
  7. int a, b, n;
  8. Scanner in = new Scanner(System.in);
  9. a = in.nextInt();
  10. b = in.nextInt();
  11. n = in.nextInt();
  12. int total = (a*100+b)*n;
  13. System.out.printf("%d %d", total/100, total%100);
  14. }
  15. }
Success #stdin #stdout 0.06s 4386816KB
stdin
5
9
2
stdout
10 18