ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ

 

2588๋ฒˆ: ๊ณฑ์…ˆ

์ฒซ์งธ ์ค„๋ถ€ํ„ฐ ๋„ท์งธ ์ค„๊นŒ์ง€ ์ฐจ๋ก€๋Œ€๋กœ (3), (4), (5), (6)์— ๋“ค์–ด๊ฐˆ ๊ฐ’์„ ์ถœ๋ ฅํ•œ๋‹ค.

www.acmicpc.net


โœ๐Ÿป ํ’€์ด

๐ŸŽจ Go

package main

import (
	"fmt"
)

func main() {
	var a, b int
	fmt.Scanf("%d", &a)
	fmt.Scanf("%d", &b)
	fmt.Println(a * (b%10))
	fmt.Println(a * ((b/10)%10))
	fmt.Println(a* ((b/100)))
	fmt.Println(a*b)
}

๐ŸŽจ Python3

import sys

a = int(sys.stdin.readline())
b = int(sys.stdin.readline())

print(a*(b%10))
print(a*(int(b/10)%10))
print(a*(int(b/100)%10))
print(a*b)
728x90
๋Œ“๊ธ€