https://knightzone.studio/2016/07/29/3157/uva%ef%bc%9a106%ef%bc%8dfermat-vs-pythagoras/
#UVa:106-Fermat vs. Pythagoras