UVA837 Light and Transparencies

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=778 [PDF](https://uva.onlinejudge.org/external/8/p837.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA837/2392fed207204a72ffb6e9aba65d33143034cfda.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA837/55a7e9782524e1b9aa42dea92dc12167b0c813e0.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA837/775d99b5ec03d9c02fdbcc798e32b1904f294c64.png)