Run ID:68245

提交时间:2024-03-21 18:51:53

# include<iostream> using namespace std; int main(){ int k; cin>>k; for(int i=k+1;i<10000;i++){ for(int j=i;j<10000;j++){ if(1/(k*1.0)==1.0/i+1.0/j) cout<<"1/"<<k<<"="<<"1/"<<i<<"+"<<"1/"<<j<<endl; } } return 0; }