#P2159. [SHOI2009] 舞会

    ID: 1137 远端评测题 1000ms 125MiB 尝试: 0 已通过: 0 难度: 8 上传者: 标签>动态规划,dp2007各省省选上海排序

[SHOI2009] 舞会

Output Format

Output a single integer in one line: the number of pairing schemes where among the nn couples, at most kk couples have the girl taller than the boy.

3 0
178
188
176
168
178
170

4

Hint

Constraints: For 100%100\% of the testdata, 1n2001 \le n \le 200, 0kn0 \le k \le n, and all heights are positive integers not greater than 10910^9.

Translated by ChatGPT 5