摘要: 问题描述 "LG1879" 题解 设$opt[i][j]$代表前$i$行,且第$i$行状态为$j$的方案数。 枚举$j$,再枚举$k$,$k$为上一行的状态。 判断$j,k$能否共存( ) 计数转移即可。 必须加强位运算能力。 $\mathrm{Code}$ cpp include using na 阅读全文
posted @ 2019-09-30 09:46 览遍千秋 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 问题描述 "LG1410" 题解 如果$i using namespace std; template void read(Tp &x){ x=0;char ch=1;int fh; while(ch!=' '&&(ch '9'||ch='0'&&ch 阅读全文
posted @ 2019-09-30 08:44 览遍千秋 阅读(150) 评论(0) 推荐(0) 编辑