UVA11155 Be Efficient

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2096 [PDF](https://uva.onlinejudge.org/external/111/p11155.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11155/244d84ff78ee867507445bf2437fcd70a1c14ca4.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11155/2f56f65c241cdc9baebd3200d5a6cfb25adb85bd.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11155/2e39a0908fa09f0efcb7e3e5abfdee94a11a1d5a.png)