其他分享
首页 > 其他分享> > 黑妹的游戏

黑妹的游戏

作者:互联网

#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <string>
#include <queue>
#include <stack>
#include <map>
#include <set>
typedef long long LL;
using namespace std;
LL gcdd(LL a, LL b, LL c)
{
    LL ANS=__gcd(a,b);
    return __gcd(ANS,c);
}
LL maxx(LL a, LL b, LL c)
{
    LL ANS=max(a,b);
    return max(ANS,c);
}
int main()
{
    LL m;
    LL a,b,c;
    LL ANS;
    cin >> m;
    while(m--)
    {
        cin >> a >> b >> c;
        ANS= maxx(a,b,c)/gcdd(a,b,c);
        cout << ANS-3 << endl;
    }
}

标签:__,游戏,黑妹,LL,long,gcdd,ANS,include
来源: https://blog.csdn.net/Cai_xiaohei/article/details/113795551