#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cstdlib>
#include <list>
using namespace std;
int main()
{
double k, x, y;
while(scanf("%lf", &k)!=EOF)
{
for(y = 1; y <= 2*k; y++)
{
x = k*y/(y - k);
if(x>0 && x<2147483647 && k*(x+y) == (x*y))
printf("1/%lg=1/%lg+1/%lg\n", k, x, y);
}
cout << endl;
}
return 0;
}
分数拆分
最新推荐文章于 2022-04-23 10:41:21 发布