https://www.acmicpc.net/problem/2588
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String b = sc.next();
sc.close();
System.out.println(a * (b.charAt(2) - '0'));
System.out.println(a * (b.charAt(1) - '0'));
System.out.println(a * (b.charAt(0) - '0'));
System.out.println(a * Integer.parseInt(b));
}
}
import java.util.Scanner
fun main() = with(Scanner(System.`in`)){
var a = nextInt()
var b = next()
println(a * (b[2] - '0'))
println(a * (b[1] - '0'))
println(a * (b[0] - '0'))
println(a * b.toInt())
}
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
sc.close();
System.out.println(a*(b%10));
System.out.println(a*(b%100/10));
System.out.println(a*(b/100));
System.out.println(a*b);
}
}
import java.util.Scanner
fun main() = with(Scanner(System.`in`)){
val a = nextInt()
val b = nextInt()
println(a*(b%10))
println(a*(b%100/10))
println(a*(b/100))
println(a*b)
}