UVA268 Double Trouble

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=204 [PDF](https://uva.onlinejudge.org/external/2/p268.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA268/a2fa673f35732235548c3278a944942c7fe4e2f1.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA268/9699fa4e10205f6cc38b1f9b2e06b78245b961f3.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA268/5a845c0f12142127bd0e46cfbe900624dc528da8.png)