mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 19:16:27 +00:00
22 lines
341 B
C++
22 lines
341 B
C++
#include <iostream>
|
|
#include <algorithm>
|
|
|
|
using std::cin;
|
|
using std::cout;
|
|
const char endl = '\n';
|
|
|
|
long long a, b, c;
|
|
|
|
inline long long lcm(long long a, long long b) {
|
|
return a / std::__gcd(a, b) * b;
|
|
}
|
|
|
|
int main() {
|
|
std::ios::sync_with_stdio(false);
|
|
|
|
cin >> a >> b >> c;
|
|
cout << lcm(a, lcm(b, c)) << endl;
|
|
|
|
return 0;
|
|
}
|