250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Django
- Join
- Python3
- List Comprehension
- pcce 기출문제
- GIT
- 백준
- 설계
- SQL 고득점 Kit
- 단어 공부
- map
- YOLOv5
- Len
- 프로젝트
- 데이터
- html
- sql
- 코딩테스트 연습
- 파이썬 몫
- 아이엠어바텐더
- 파이썬
- css
- 프로그래머스
- where
- 파이썬 슬라이싱
- 슬라이싱
- date_format
- count
- python
- ORDER BY
Archives
- Today
- Total
nan + nan = 2nan
[백준] [Python3] #1001. A - B 본문
728x90

코드 입력
A, B = map(int, input().split())
print(A - B) # 위에 처럼 출력문에 int를 씌우거나 입력문에 map을 활용해 int 씌우기
앞에서 풀어봤던 A + B 문제와 같다. map과 int, split 에 대한 이해가 필요한 문제.
출처 : 백준 Online Judge
https://www.acmicpc.net/problem/1001
1001번: A-B
두 정수 A와 B를 입력받은 다음, A-B를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
'Python > 백준 알고리즘' 카테고리의 다른 글
[백준] [Python3] #1008. A / B (0) | 2021.08.03 |
---|---|
[백준] [Python3] #10998. A X B (0) | 2021.08.03 |
[백준] [Python3] #1000. A + B (0) | 2021.08.03 |
[백준] [Python3] #10172. 개 (0) | 2021.08.03 |
[백준] [Python3] #10171. 고양이 (0) | 2021.08.03 |