洛谷 3959 寶藏 NOIP2017提高組Day2 T2

【題解】   狀壓DP. f[i]表示現在的點是否連接的狀態是i. 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 #define LL long long 5 #define rg register 6 #define N 5000 7 #define inf (0X7f7f7f7f) 8 using
相關文章
相關標籤/搜索