CF1080E 题解

CF1080E 题解

$\text{Description}$

给定一个由小写字母组成的矩形,我们称其的一个子矩形是美丽的,当且仅当其任意行任意排列字符后,任意行或任意列都为回文串。

求该矩形的子矩形中,有多少个是美丽的。

$1\le n,m\le 250,|\Sigma|=26$

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×