UVA13073 The Count of the Rose

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=866&page=show_problem&problem=4971 [PDF](https://uva.onlinejudge.org/external/130/p13073.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13073/1644d1252a71a51a5b0bad9bb96a052bb1b5822d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13073/0f1f8e34bc516f56a95d46940726c73895fda274.png)

Output Format

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