C++ gcd(98%)
```\nint gcd(int a, int b)\n    { \n    int t;\n        if(b>a){\n            t=a;\n            a=b;b=t;\n        }\n    while (b != 0)\n    {\n        t = a % 
```\nint gcd(int a, int b)\n    { \n    int t;\n        if(b>a){\n            t=a;\n            a=b;b=t;\n        }\n    while (b != 0)\n    {\n        t = a % b;\n        a = b;\n        b = t;\n    }\n    return a;\n    }\n    bool isGoodArray(vector<int>& nums) {\n        if(nums.size()<1)return false;\n        int gbs=nums[0];\n        for(int i=1;i<nums.size();i++)\n        {\n            gbs=gcd(gbs,nums[i]);\n        }\n        if(gbs==1)return true;\n        else return false;\n    }\n\t\'\'\'
[]