ans

DOZIE 2022-06-23 17:17:36 15 返回题目

#include <bits/stdc++.h> using namespace std; int main(){ int a , b; cin >> a >> b; while (a % b != 0){ int r = a % b; a = b; b = r; } cout << "gcd=" << b; return 0; }

{{ vote && vote.total.up }}

共 1 条回复

gongxue_wangyi

__gcd不香吗?