Run ID:137198
提交时间:2025-11-16 15:57:20
#include <bits/stdc++.h> using namespace std; int main() { float k; cin >> k; for(int x = 1;x<= 100000;x++) { int y = k * x / (x - k); if(x * y == k * y + k * x && x <= y) { cout <<"1/"<<k<<" = 1/"<<x<<" + 1/"<<y<<endl; } } return 0; }