출처
https://www.acmicpc.net/problem/1001
1001번: A-B
두 정수 A와 B를 입력받은 다음, A-B를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
문제
풀이
첫째 줄에 A,B를 입력받아야 하기때문에 spilt() 사용
map() 사용 한줄에 int() input() spilt() 처리
코드
A,B = map(int,input().split())
print(A-B)
'알고리즘 > 백준' 카테고리의 다른 글
[백준] 10869번: 사칙연산 - [Python] (0) | 2022.02.16 |
---|---|
[백준] 10998번: A*B - [Python] (0) | 2022.02.16 |
[백준] 1000번: A+B - [Python] (0) | 2022.02.16 |
[백준] 10172번: 개 - [Python] (0) | 2022.02.15 |
[백준] 10171번: 고양이 - [Python] (0) | 2022.02.14 |