ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ 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
- ์๊ณ ๋ฆฌ์ฆ
- java
- Golang
- ๋งฅ๋ถํ๋ก
- ๋ฐฑ์ค
- ์๊ฐ๊ต์ฒด
- ๋ธ๋ฃจํธํฌ์ค
- ๋ถํ ์ ๋ณต
- ๋ฐ๋
- python3
- ์ด๋ถํ์
- ballet
- BFS
- ๋งฅ๋ถ
- ํด์๋งต
- BOJ
- Algorithm
- dp
- baekjoon
- ์คํ
- go
- ํ๋ก์ด๋์์ฌ
- ์๋ฐ
- ๋ชฝ๊ณ ๋๋น
- AWS
- ํ
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- Macbook pro 2012 mid 13
- MongoDB
- dfs
- Total
- Today
- Yesterday