题目传送门 题目大意: 给出a和n,求满足的b和c. 思路: 数论题目,没什么好说的. 根据费马大定理,当n>2时不存在正整数解. 当n=0或者1时特判一下就可以了,也就是此时变成了一个求勾股数的问题. 勾股数的规律 1. 直角三角形短直角边为奇数,另一条直角边与斜边是两个连续自然数,则两边之和是短直角边的平方. a=2*n+1,b=2*n*(n+1),c=2*n*(n+1)+1.例如,(3.4.5),(5.12.13),(7.24.25).(9.40.41) 2. 大于2的任意偶数2n(n>…