UVA13155 Harmonic Matrix

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13155/766817e7b8c92d1ffde9046e2004dd2575ed1834.png)

Output Format

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