>>492
もう少し教えてくれませんか・・?あと、問題にミス見つけました。
where Y takes values in [1,...,k] and Z takes value [1,...,m] でした。