Run ID:163612

提交时间:2026-10-26 20:56:56

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int k; cin>>k; int x,y; for(int x=k+1;x<=2*k;x++){ if(k*x%(x-k)==0){ y=k*x/(x-k); cout<<"1/"<<k<<" "<<'='<<" "<<"1/"<<x<<" "<<'+'<<" "<<"1/"<<y<<endl; } } return 0; }