E. 因數串

E. 因數串 思路:遞歸,關鍵是遞歸的順序以及實現過程,顯然能夠按順序搜,若是當前已經搜過了就倒着相似相似除法搜。每次搜完都更換一下是否被搜過。c++ 傳送門web #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=20,M=65,inf=0x3f3f3f3f,mod=1e9+7; #def
相關文章
相關標籤/搜索