mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 15:16:28 +00:00
parent
c7fb5ad7c6
commit
53fdef7229
10
LibreOJ/P41237/P41237.cpp
Normal file
10
LibreOJ/P41237/P41237.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int a, b;
|
||||
cin >> a >> b;
|
||||
cout << (a / __gcd(a, b) + b / __gcd(a, b) - 1) * __gcd(a, b) << endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user