平時八測

第一題: 輪廓線DP,從後往前存;複雜度R*C*2^16; 學習了一波std的寫法,非常優美; #include<bits/stdc++.h> using namespace std; const int M = (1<<16) + 1; int dp[2][M], cnt[M], len[130]; char sc[130][20]; inline int bit(int x){ if
相關文章
相關標籤/搜索