UVA12474 Draw and Score

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12474/32a163b3d38ec7878b9d3e9ccca0893a0b7e536e.png)

Output Format

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