[파이썬][백준 10757번] 큰 수 A + B
1. 문제Permalink
[Bronze V] 큰 수 A+B - 10757Permalink
성능 요약Permalink
메모리: 30864 KB, 시간: 76 ms
분류Permalink
임의 정밀도 / 큰 수 연산(arbitrary_precision), 사칙연산(arithmetic), 구현(implementation), 수학(math)
출처: 백준, https://https://www.acmicpc.net/
2. 해결방법 시간복잡도Permalink
- 단순 코딩 O(1)
3. 문제 해결 및 코드Permalink
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(sum(map(int, input().split()))) |
-
주석을 참고하면서 이해를 돕습니다.Permalink
4. 알고리즘 및 해설Permalink
- 출력하고자 하는 값을 출력해준다.
5. 짚고 넘어가기Permalink
- 값을 받음과 동시에 합값을 출력하고자 할 때는 sum()을 앞에 붙이면 된다. 파이썬은 응용하기 좋은 언어이다.