Run ID:148587
提交时间:2026-02-26 16:25:36
#include<bits/stdc++.h> using namespace std; int main() { int k; cin>>k; for(int i=1;i<=10000;i++){ for(int j=10000;j>=1;j--){ if((1.0/k)==(1.0/i+1.0/j)){ cout<<"1"<<"/"<<k<<"="<<"1"<<"/"<<i<<"+"<<"1"<<"/"<<j<<endl; } } } return 0; }