Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- SW Expert Academy
- 편스토랑
- Docker
- 맥북
- Baekjoon
- 데이콘
- 코로나19
- 프로그래머스
- Git
- Kaggle
- leetcode
- PYTHON
- ubuntu
- github
- AI 경진대회
- gs25
- 백준
- 금융문자분석경진대회
- 캐치카페
- dacon
- 프로그래머스 파이썬
- 더현대서울 맛집
- Real or Not? NLP with Disaster Tweets
- 편스토랑 우승상품
- ChatGPT
- 우분투
- programmers
- 파이썬
- 자연어처리
- hackerrank
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 6810번 : ISBN (Python) 본문
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
'Programming > 코딩 1일 1문제' 카테고리의 다른 글
[BaekJoon] 25893번 : Majestic 10 (Python) (0) | 2022.10.29 |
---|---|
[BaekJoon] 25858번 : Divide the Cash (Python) (0) | 2022.10.28 |
[Programmers] 숫자 짝궁 (Python) (0) | 2022.10.26 |
[Programmers] 가장 큰 수 찾기 (Python) (0) | 2022.10.25 |
[Programmers] 콜라 문제 (Python) (0) | 2022.10.24 |
Comments