ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
10869๋ฒ: ์ฌ์น์ฐ์ฐ
๋ ์์ฐ์ A์ B๊ฐ ์ฃผ์ด์ง๋ค. ์ด๋, A+B, A-B, A*B, A/B(๋ชซ), A%B(๋๋จธ์ง)๋ฅผ ์ถ๋ ฅํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค.
www.acmicpc.net
โ๐ป ํ์ด
๐จ Go
package main
import (
"fmt"
)
func main() {
var a, b int
fmt.Scanf("%d %d", &a, &b)
fmt.Println(a + b)
fmt.Println(a - b)
fmt.Println(a * b)
fmt.Println(a / b)
fmt.Println(a % b)
}
๐จ Python3
import sys
a, b = sys.stdin.readline().split()
a = int(a)
b = int(b)
print(a+b)
print(a-b)
print(a*b)
print(int(a/b))
print(a%b)
728x90
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 2588๋ฒ / ๊ณฑ์ [Go] [Python3] (0) | 2020.03.14 |
---|---|
BOJ / 10430๋ฒ / ๋๋จธ์ง [Go] [Python3] (0) | 2020.03.14 |
BOJ / 1008๋ฒ / A/B [Go] [Python3] (0) | 2020.03.14 |
BOJ / 10998๋ฒ / AรB [Go] [Python3] (0) | 2020.03.13 |
BOJ / 1001๋ฒ / A-B [Go] [Python3] (0) | 2020.03.13 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- dfs
- ์ด๋ถํ์
- ๋งฅ๋ถ
- Macbook pro 2012 mid 13
- ์๊ฐ๊ต์ฒด
- ๋ชฝ๊ณ ๋๋น
- ballet
- ์๋ฐ
- python3
- AWS
- ๋ธ๋ฃจํธํฌ์ค
- Algorithm
- ํ
- ๋ฐฑ์ค
- BFS
- BOJ
- ํ๋ก์ด๋์์ฌ
- ํด์๋งต
- MongoDB
- Golang
- go
- baekjoon
- ๋ถํ ์ ๋ณต
- ๋ฐ๋
- dp
- java
- ์๊ณ ๋ฆฌ์ฆ
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- ์คํ
- ๋งฅ๋ถํ๋ก
- Total
- Today
- Yesterday