10.24 test3 T2

題幹 solution 對於位運算來說,每一位是獨立的,所以單獨考慮每一位,然後用乘法原理乘起來 dp[i][j]表示前i行中j列有1的方案數 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int p=1e9+7; int read() {
相關文章
相關標籤/搜索