题意:给定p=1e9+7,构造x,y使其知足(x+y) mod p = b,(x*y) mod p = c .html
思路:不考虑取模的状况下, 。在取模的意义下,,由于a是模p的二次剩余的充分必要条件为 ,因此能够根据二次剩余求出x-y。ui
http://www.javashuo.com/article/p-hfeltkjl-hy.html.net
https://blog.csdn.net/qq_41117236/article/details/996840033d