最大公约数

    xiaoxiao2021-03-25  89

    #include <iostream> int main() { long long int a, b; std::cin >> a; std::cin >> b; long long int s; while (b != 0) { s = a; a = b; b = s%b; } std::cout << a; return 0; }辗转相除法
    转载请注明原文地址: https://ju.6miu.com/read-24448.html

    最新回复(0)