#include <iostream>
using namespace std; 
int main() {
    int a,b,c,a1,b1,c1,x = 1;
    cin>>a>>b>>c;
    while(1){
        x++;
        a1 = a%x;
        b1 = b%x;
        c1 = c%x;
        if(a1==b1 && b1==c1){
            cout<<x;
            break;
        }
    }
    return 0;    
}

 

posted on 2023-02-01 18:09  黛玉醉打将门神  阅读(121)  评论(0编辑  收藏  举报