介绍一个求公约数的函数__gcd()

using namespace std;
#define int long long
#define endl '\n'
signed main(){
    std::ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
    int a,b;cin>>a>>b;
    int s=__gcd(a,b);//__gcd是求最大公约数的函数,也可以在约分的时候用
    cout<<s<<endl;
    return 0;
}