Warning: session_start(): open(/tmp/sess_11d148bd0fd996e1747e22b004235ee0, O_RDWR) failed: No space left on device (28) in /data/wiki/inc/init.php on line 239

Warning: session_start(): Failed to read session data: files (path: ) in /data/wiki/inc/init.php on line 239

Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/auth.php on line 430

Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/Action/Export.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/Action/Export.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/Action/Export.php on line 103
[[http://poj.org/problem?id=2411|POJ 2411]] #include #include #include #include #include using namespace std; int h,w; long long f[12][(1<<12)]; int read() { int x=0,f=1;char c=getchar(); while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();} while(c>='0'&&c<='9'){x=x*10+c-'0';c=getchar();} return x*f; } int main() { h=read(),w=read(); while(h&&w) { if((h*w)%2){puts("0"),h=read(),w=read();continue;} memset(f,0,sizeof(f)); if(!h&&!w)break; for(int i=1;i<=h;i++) { for(int j=0;j<(1<=(1<=(1<