[USACO06NOV]玉米田Corn Fields

题目

https://www.luogu.org/problemnew/show/P1879

思路

用状态表示草地最外层,转移时按状态判断

代码

#include
using namespace std;
const int MOD=1e8;
int f[13][2100];
int can[13];
int donot[201];
bool judge(int x)
{
    return (x & (x>>1));
}
int main()
{
    int m,n; 
    scanf("%d%d",&m,&n);
    int x;
    int full=(1<

你可能感兴趣的:(题解)