CB002


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 512M

Problem type

Cho hai số nguyên dương \(n,m (1≤n,m≤10^9)\).

Yêu cầu: Tính và đưa ra màn hình \(BCNN(n,m)\).

Input:

  • Gồm một dòng chứa hai số \(n,m (1≤n,m≤10^9)\)

Output

  • In ra \(BCNN(n,m)\)

Sample Input

3 4

Sample Output

12

Comments


  • 0
    K35_ngoc  commented on July 10, 2024, 11:17 a.m.

    include <bits/stdc++.h>

    using namespace std; long long n,m; int main() { cin>>n>>m; cout<<n*m/__gcd(n,m)<<endl; return 0; }