티스토리 뷰

문제

두 정수 A와 B를 입력받은 다음, A-B를 출력하는 프로그램을 작성하시오.

 

a, b = input().split()
a = int(a)
b = int(b)

print(a-b)

 

알고리즘 분류

'coding practice > BOJ' 카테고리의 다른 글

[백준] 10869번 Python: 사칙연산  (0) 2022.05.09
[백준] 1008번 Python: A/B  (0) 2022.05.09
[백준] 10998번 Python: AxB  (0) 2022.05.09
[백준] 1000번 Python: A+B  (0) 2022.05.09
[백준] 2557번 Python: Hello World  (0) 2022.05.09
댓글