5/11日奧數(shù) 上半節(jié) 1.形式分?jǐn)?shù)法: 2.例子: 解法: 3.擴(kuò)展歐幾里得算法(EXEA) 1.背景 2.步驟如下: 3.擴(kuò)展歐幾里得算法代碼實(shí)現(xiàn): #include <iostream> #include <tuple> using namespace std; tuple<int, int, int> gcdd(int a, int b) { if (b == 0) { return {a, 1, 0}; // gcd = a, x = 1, y = 0 } int gcd, x1, y...