UVA11740 How Dark Can it Be?

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=117&page=show_problem&problem=2840 [PDF](https://uva.onlinejudge.org/external/117/p11740.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11740/2350b04fceb18fad924211115154183f2bed772f.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11740/4e10c46537862a46eea407b1465dcfc8cb54dca4.png)

Output Format

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