1 #include <cstdio>
2 #include <iostream>
3
4 using namespace std;
5
6 int main()
7 {
8 int k;
9 cin>>
k;
10
11 int count=
0;
12
13 for(
int y=k+
1;y<=
2*k;y++
)
14 {
15 int x=y*k/(y-
k);
16
17 if(y*k*
1.0/(y-k)-x==
0 && x>=
y)
18 printf(
"1/%d=1/%d+1/%d\n",k,x,y),count++
;
19 }
20
21 printf(
"%d\n", count);
22 return 0;
23 }
转载于:https://www.cnblogs.com/tclan126/p/7406806.html
转载请注明原文地址: https://win8.8miu.com/read-1542500.html