UVA12429 Finding Magic Triplets

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3860 [PDF](https://uva.onlinejudge.org/external/124/p12429.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12429/f3283210b85f6ca85b4ca4b3b1ca9cb5a76ef12e.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12429/9175ca17eda2b6baafc79db9630c08a3a8f9de89.png)

Output Format

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