UVA696 How Many Knights

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=637 [PDF](https://uva.onlinejudge.org/external/6/p696.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA696/e7520a063d7cf0cc57d27a5e5f29bc7cc9dfdcb9.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA696/5e45c2fe70a576153745c718339b53b7e8d7e64b.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA696/fc545ed0a099fcafb0a8209f88ad003a97b50465.png)