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 |
Tags
- 데이콘
- leetcode
- 우분투
- Git
- Real or Not? NLP with Disaster Tweets
- programmers
- 캐치카페
- 맥북
- 파이썬
- github
- AI 경진대회
- SW Expert Academy
- 프로그래머스
- 자연어처리
- 코로나19
- dacon
- 프로그래머스 파이썬
- hackerrank
- ubuntu
- Kaggle
- 더현대서울 맛집
- Docker
- gs25
- ChatGPT
- PYTHON
- 백준
- 편스토랑
- Baekjoon
- 금융문자분석경진대회
- 편스토랑 우승상품
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 3486번 : Adding Reversed Number (Python) 본문
728x90
반응형
![](http://t1.daumcdn.net/tistory_admin/static/images/xBoxReplace_250.png)
코딩 1일 1문제! 오늘의 문제는 백준의 Adding Reversed Number 입니다.
3486번: Adding Reversed Numbers
The Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedies. Therefore the dramatic advisor of ACM has decided to transfigure some tragedies into comedies. Obviously, this work is very hard beca
www.acmicpc.net
👨🏻💻 코드 ( Solution )
def reverse_number(num):
return int(str(num)[::-1])
def adding_reversed_numbers(num1, num2):
reversed_num1 = reverse_number(num=num1)
reversed_num2 = reverse_number(num=num2)
return reverse_number(num=(reversed_num1 + reversed_num2))
if __name__ == "__main__":
for _ in range(int(input())):
num1, num2 = map(int, input().split())
print(adding_reversed_numbers(num1=num1, num2=num2))
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] 20499번 : Darius님 한타 안 함? (Python) (0) | 2022.09.13 |
---|---|
[BaekJoon] 5235번 : Even Sum More Than Odd Sum (Python) (0) | 2022.09.12 |
[BaekJoon] 8611번 : 팰린드롬 숫자 (Python) (0) | 2022.09.09 |
[BaekJoon] 3047번 : ABC (Python) (1) | 2022.09.08 |
[BaekJoon] 4740번 : 거울, 오! 거울 (Python) (0) | 2022.09.07 |