2 해설

  • 2
    @ 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
    }
    
    • 1
      @ 2024-1-31 20:35:48

      关于__gcd( )


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

      喜欢点个❤️呗

      • 1

      정보

      ID
      120
      시간
      1000ms
      메모리
      256MiB
      난이도
      1
      태그
      (N/A)
      제출 기록
      105
      맞았습니다.
      66
      아이디