1 solutions

  • 0
    @ 2024-4-8 11:26:20

    #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,maxn=0; cin >> a >> b >> c; for(int i=1;i<=min(a,min(b,c)); i++){ if(a%i0 and b%i0 and c%i==0){ if(maxn<i){ maxn=i; } } } cout << maxn; return 0;}

    • 1

    Information

    ID
    8221
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    1
    Tags
    # Submissions
    16
    Accepted
    4
    Uploaded By