Educational Codeforces Round 170 (Rated for Div.2)

D - Attribute Checks

$设>0为s技能点,小于0为t技能点$

$dp[i][j]$表示前i个位置加了j个s技能点,自然在前i个位置加了i*m-j个t技能点

Welcome to my other publishing channels