0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 22:08:47 +00:00

revert: 6755ced87ed7bc1d9999651bcb6bfa4f87b9c288

This commit is contained in:
Baoshuo Ren 2021-11-29 20:25:17 +08:00 committed by Baoshuo Ren
parent 90c68ba9fa
commit 67b2681e6f
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View File

@ -1,10 +0,0 @@
#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;
}