Run ID:150910

提交时间:2026-04-02 12:02:38

#include<bits/stdc++.h> using namespace std; int main(){ int k; cin>>k; for(int x=k+1;x<=2*k;x++){ if(x*k%(x-k)==0){ cout<<"1/"<<k<<" = "<<"1/"<<x<<" + "<<"1/"<<x*k/(x-k)<<endl; } // double y=1/(1.0/k-1.0/x); // if((int)y==y){ // cout<<x<<" "<<y<<endl; // } // for(int y=x;y<=1/(1.0/k-1.0/(k+1))+1;y++){ // if(1.0/x+1.0/y==1.0/k){ // cout<<x<<" "<<y<<endl; // } // } } return 0; }