1 条题解

  • 1
    @ 2022-9-29 21:00:29
    #include <cstdio>
    #include <iostream> 
    using namespace std;
    int f(int a, int b)
    {
       if(b==0) return a;
       return f(b,a%b);
    }
    int main()
    {
    	int a, b;
    	cin >> a >> b;
    	cout << f(a, b);
    	return 0;
    }
    
    • 1

    信息

    ID
    427
    时间
    1000ms
    内存
    128MiB
    难度
    3
    标签
    (无)
    递交数
    146
    已通过
    83
    上传者