Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153388 陈棋 拆分分数 C++ Accepted 5 MS 268 KB 276 2026-05-16 16:36:57

Tests(20/20):


Code:

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