UVA106 Fermat vs. Pythagoras

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=42 [PDF](https://uva.onlinejudge.org/external/1/p106.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA106/4d88988bcdce10cc564a6cf14e40f984276d9ab0.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA106/73ad784028516e6b3f8be8c92f261975c97fe7d7.png)

Output Format

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