1 条题解

  • 0
    @ 2025-3-9 10:58:24
    #include<bits/stdc++.h>
    using namespace std;
    
    typedef long long ll;
    const int N = 1e6+5;
    const int inf = 0x3f3f3f3f;
    
    ll gcd(ll a,ll b){
    	return b==0? a: gcd(b, a%b);
    }
    
    void solve(){
    	int a,b; cin>>a>>b;
    	cout<<gcd(a,b)<<'\n';
    } 
    int main(){
    	int t = 1; // cin>>t;
    	while(t --){
    		solve();
    	}
    	return 0;
    }
    
    • 1

    信息

    ID
    60
    时间
    1000ms
    内存
    16MiB
    难度
    5
    标签
    递交数
    226
    已通过
    94
    上传者