标签:
#include<stdio.h> int main() { int i,s,k,x; scanf("%d",&s); while(s--) { scanf("%d",&k); for(i=k+1;i<=2*k;i++) { x=(k*i)/(i-k); if(k == i*x/(x+i)) printf("1/%d=1/%d+1/%d\n",k,x,i); } } return 0; }
标签:
原文地址:http://blog.csdn.net/qq_16767427/article/details/43850491