UVA11996 Jewel Magic

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3147 [PDF](https://uva.onlinejudge.org/external/119/p11996.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11996/2bab589816720983ab635f9484728b78d4993b0f.png)

Input Format

N/A

Output Format

N/A