RETO5M10 - 5RETO 10 MARATON (Calentamiento)
The least common multiple of several numbers is the smallest number that is a multiple of all of them at once.
For example, the LCM of 3 and 7 is 21, the 4 and 12 is 12, and 9 and 12 is 36.
The user will enter three whole numbers (positive, of no more than 5 figures), one per line. Your program should display the least common multiple of these three numbers.
Input
Three integer numbers.
Output
Output the integer result.
Example
Input: 12 24 28 Output: 168
Input: 12 24 48 Output: 48
hide comments
nadstratosfer:
2018-10-13 16:30:15
Same as RETO1AGO from the same psetter. |
|
wisfaq:
2015-09-28 14:23:07
Unnecessary language restrictions.
|
Added by: | MARATON AFDM |
Date: | 2015-09-28 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | MAWK BC C NCSHARP CSHARP C++ 4.3.2 COFFEE DART FORTH JAVA JS-RHINO JULIA KTLN NODEJS OCT PHP PROLOG PYPY3 R RACKET SQLITE SWIFT UNLAMBDA |