Run ID:119118

提交时间:2025-05-16 21:40:19

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