```python def coprime(a, b): return gcd(a, b) == 1 ``` 3. 解决同余方程a*x=b(mod n)。假设a、b和n都是正整数,我们可以使用扩展欧几里得算法来求解这个方程。
確定! 回上一頁