UVA12481 K-Neutral Rectangles

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3925 [PDF](https://uva.onlinejudge.org/external/124/p12481.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12481/e61316ceb7671d8e9200b40baefe3579f6b416c2.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12481/99f10bf206b8bdbb3cce0d7650186b5b7051f8db.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12481/7924cf97141754ce214e205b1b7c058ccdbf6484.png)