摘要: #include<iostream> using namespace std; int GCD(int &a, int &b) { int remainder; if (b != 0) while (true) { remainder = a % b; if (remainder == 0) ret 阅读全文
posted @ 2021-10-29 03:03 Grit_L。 阅读(36) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int GCD(int x, int y) { return y == 0 ? x : GCD(y, x % y); } int main() { int x, y; x=GCD(169, 121); cout << " 阅读全文
posted @ 2021-10-29 02:59 Grit_L。 阅读(38) 评论(0) 推荐(0) 编辑