【CF】C. Ayoub and Lost Array (容斥 DP)

求出區間裏對3取餘爲0,1,2的個數,DP[ i ] [ j ]表示 到前i個數對3取餘爲j的方案數 #include <bits\stdc++.h> #include <iostream> #include <queue> #include <iomanip> #include <cmath> #include <set> #include <algorithm> //#include <ran
相關文章
相關標籤/搜索