2 条题解

  • 3
    @ 2024-1-31 20:19:40
    #include<bits/stdc++.h>
    using namespace std;
    int a[1000];
    int main()
    {
    int a,b;
    cin >> a >> b;
    cout << __gcd(a,b) << endl;
    //so easy
    }
    
    • 2
      @ 2024-1-31 20:35:48

      关于__gcd( )


      1. gcd在英文中是最大公约数的英文缩写
      2. 全拼是greatest common divisor
      3. 由于很多人把gcd设为自定义函数 c++就把__gcd设为求最大公约数的函数

      喜欢点个❤️呗

      • 1

      信息

      ID
      120
      时间
      1000ms
      内存
      256MiB
      难度
      1
      标签
      (无)
      递交数
      102
      已通过
      63
      上传者