관리 메뉴

솜씨좋은장씨

[BaekJoon] 6810번 : ISBN (Python) 본문

Programming/코딩 1일 1문제

[BaekJoon] 6810번 : ISBN (Python)

솜씨좋은장씨 2022. 10. 27. 12:21
728x90
반응형

코딩 1일 1문제! 오늘의 문제는 백준의 ISBN 입니다.

 

6810번: ISBN

The International Standard Book Number (ISBN) is a 13-digit code for identifying books. These numbers have a special property for detecting whether the number was written correctly. The 1-3-sum of a 13-digit number is calculated by multiplying the digits a

www.acmicpc.net

👨🏻‍💻 코드 ( Solution )

def isbn(a, b, c):
    answer = 91 + a * 1 + b * 3 + c * 1
    return f"The 1-3-sum is {answer}"


if __name__ == "__main__":
    a = int(input())
    b = int(input())
    c = int(input())
    
    print(isbn(a=a, b=b, c=c))
 

GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07

1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.

github.com

Comments