#F. [SCOI2005] 互不侵犯

    Type: RemoteJudge 1000ms 125MiB

[SCOI2005] 互不侵犯

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

N×NN \times N 的棋盘里面放 KK 个国王,使他们互不攻击,共有多少种摆放方案。国王能攻击到它上下左右,以及左上左下右上右下八个方向上附近的各一个格子,共 88 个格子。

输入格式

只有一行,包含两个数 N,KN,K

输出格式

所得的方案数

3 2

16

提示

数据范围及约定

对于全部数据,1N91 \le N \le 90KN×N0 \le K \le N\times N


upd 2018.4.25\text{upd 2018.4.25}:数据有加强。

ch02 - 状压 DP

Not Claimed
Status
Done
Problem
8
Open Since
2023-12-2 0:00
Deadline
2024-3-3 23:59
Extension
2400 hour(s)