ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ 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
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 9498๋ฒ / ์ํ ์ฑ์ [Go] [Python3] (0) | 2020.03.16 |
---|---|
BOJ / 1330๋ฒ / ๋ ์ ๋น๊ตํ๊ธฐ [Go] [Python3] (0) | 2020.03.15 |
BOJ / 10430๋ฒ / ๋๋จธ์ง [Go] [Python3] (0) | 2020.03.14 |
BOJ / 10869๋ฒ / ์ฌ์น์ฐ์ฐ [Go] [Python3] (0) | 2020.03.14 |
BOJ / 1008๋ฒ / A/B [Go] [Python3] (0) | 2020.03.14 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- ์ด๋ถํ์
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- Macbook pro 2012 mid 13
- ์๊ฐ๊ต์ฒด
- dfs
- python3
- BOJ
- ballet
- BFS
- ๋ฐ๋
- ํด์๋งต
- ๋งฅ๋ถํ๋ก
- Golang
- ๋งฅ๋ถ
- ๋ธ๋ฃจํธํฌ์ค
- AWS
- dp
- ์๊ณ ๋ฆฌ์ฆ
- Algorithm
- ํ๋ก์ด๋์์ฌ
- java
- ๋ฐฑ์ค
- ๋ถํ ์ ๋ณต
- baekjoon
- ํ
- ์๋ฐ
- ์คํ
- MongoDB
- ๋ชฝ๊ณ ๋๋น
- go
- Total
- Today
- Yesterday