[SW Expert Academy, SWEA 2043] 서랍의 비밀번호 (python)
Problem Solving/SWEA

[SW Expert Academy, SWEA 2043] 서랍의 비밀번호 (python)

728x90

https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=1&contestProbId=AV5QJ_8KAx8DFAUq&categoryId=AV5QJ_8KAx8DFAUq&categoryType=CODE&problemTitle=&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=1&pageSize=10&pageIndex=2

 

SW Expert Academy

SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!

swexpertacademy.com


※ SW Expert 아카데미의 문제를 무단 복제하는 것을 금지합니다.

728x90

 

p가 k보다 무조건 큰 경우만 주어지는 것 같다.

(p가 k보다 작은 경우도 주어진다면, p에 1000을 더해서 계산하면 된다.)


p, k = map(int, input().split())

print(p - k + 1)
728x90