UVA10150 Doublets

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1091 [PDF](https://uva.onlinejudge.org/external/101/p10150.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10150/4ba9e013b27288b8ddbed1755094b007ae065166.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10150/917a65034d0680a15520d25454aa3535f760949e.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10150/34eec49a7d5bdbb69358809c09539a9ee9c2bbfb.png)