版本比较
P10975 Mondriaan's Dream / 蒙德里安的梦想 题解
正文
增加 5 行删除 1 行
73 行未改动74757677787879808117 行未改动9910010110210310410510610773 行未改动 if((h*w)%2||ans[h][w])continue; int n=h,m=w; if(n%2)swap(n,m);//保证n为偶数 f128 res=1.0; //循环减半,幂次简化 for(int i=1;i<=n/2;i++) for(int j=1;j<=m;j++) res*=sqrtl((long double)(cs[n][i]+cs[m][j]));
17 行未改动2. [详细证明过程下载链接(PDF in English)](https://people.reed.edu/~davidp/homepage/students/wang.pdf)
## 结语*Perhaps, beyond conventional methods, there lie countless unconventional ones. They may be bizarre or hard to code, yet they form this digital empire—created by humanity.*
---
upd. 2026.06.13实则比 dp 快,我原来误把打表的当成 dp 的了