Tìm bội chung nhỏ nhất của 2 số

View as PDF

Submit solution

Points: 10.00 (partial)
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Problem type

Cho 2 số nguyên a và b, viết chương trình tìm bội chung nhỏ nhất của a và b.


Dữ liệu
  • Hai số nguyên a và b

Kết quả
  • Bội chung nhỏ nhất của a,b.

Ví dụ
Dữ liệu
1
3
Kết quả
3

Ràng buộc
  • ~∣a∣,∣b∣≤10^3~

Comments

Please read the guidelines before commenting.


There are no comments at the moment.