#include <iostream>
using namespace std;
long long int gcd(long long int a, long long int b) {
if (b == 0) return a;
else return gcd(b, a % b);
}
int main() {
long long int A, B;
cin >> A>>B;
cout << A*B/gcd(A, B);
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 13420๋ฒ - ์ฌ์น์ฐ์ฐ (0) | 2021.11.04 |
---|---|
[๋ฐฑ์ค,c++] 13414๋ฒ - ์๊ฐ์ ์ฒญ (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 1330๋ฒ - ๋ ์ ๋น๊ตํ๊ธฐ (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 13239๋ฒ - Combinations (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 13171๋ฒ - A (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 13163๋ฒ - ๋๋ค์์ ๊ฐ ๋ถ์ด๊ธฐ (0) | 2021.11.04 |
๋๊ธ