최소 공배수 계산하기
Unrated
한국어
Language
Contribute a translation- Time limit
- 1000 ms
- Memory limit
- 256 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
두 정수를 입력받아 두 수의 최소 공배수를 계산하는 함수 f(a, b)를 재귀 함수로 설계하고, 계산한 값을 출력하시오.
Input
첫째 줄에 두 정수 $a$와 $b$가 공백을 사이에 두고 주어진다. ($1 \le a, b \le 300$)
Output
$a$와 $b$의 최소 공배수를 한 줄에 출력한다.
Examples
Sample input 1
4 6
Sample output 1
12
Sample input 2
7 5
Sample output 2
35
Tags
No tags yet