UVA13188 Rectangular Sum

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=871&page=show_problem&problem=5099 [PDF](https://uva.onlinejudge.org/external/131/p13188.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13188/75411f24564ccfc72004e636de9622faa05962fa.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13188/21526c211d8fc775bc5b746987ca11b1673a56c4.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13188/9e2d1c80b30b7b5bd35dce626f2e7319ab966890.png)