sw expert academy-2043. 서랍의 비밀번호-python

cosmos·2022년 5월 4일
0
post-thumbnail

코드

# https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=1&contestProbId=AV5QJ_8KAx8DFAUq&categoryId=AV5QJ_8KAx8DFAUq&categoryType=CODE&problemTitle=&orderBy=FIRST_REG_DATETIME&selectCodeLang=PYTHON&select-1=1&pageSize=10&pageIndex=2
# sw expert academy, d1: 2043. 서랍의 비밀번호, python3
def solve(num1: int, num2: int) -> int:
    return num1 - num2 + 1

if __name__ == '__main__':
    p, k = map(int, input().split())

    print(solve(p, k))

결과

출처 & 깃허브

2043. 서랍의 비밀번호
github

0개의 댓글