The solution of ACM POJ 1163 - The Triangle