【題解】洛谷P2312[NOIP2014]解方程 枚舉+數學知識

題目鏈接 枚舉答案x,計算上面那個式子的值,可以選擇邊算邊模( 某個八位質數),免得打高精,一般不會死。 #include<cstdio> #include<vector> using namespace std; const int mod=19260817,M=1e6+10; typedef long long ll; template<typename tp>inline void read
相關文章
相關標籤/搜索