[파이썬][백준 10998번] A x B
1. 문제Permalink
[Bronze V] A×B - 10998Permalink
성능 요약Permalink
메모리: 30872 KB, 시간: 68 ms
분류Permalink
사칙연산(arithmetic), 구현(implementation), 수학(math)
문제 설명Permalink
두 정수 A와 B를 입력받은 다음, A×B를 출력하는 프로그램을 작성하시오.
입력Permalink
첫째 줄에 A와 B가 주어진다. (0 < A, B < 10)
출력Permalink
첫째 줄에 A×B를 출력한다.
출처: 백준, 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
a, b = map(int, input().split()) | |
print(a*b) |
-
주석을 참고하면서 이해를 돕습니다.Permalink
4. 알고리즘 및 해설Permalink
- 받은 값을 곱하는 출력문을 구현한다.