Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157386 李沐阳 拆分分数 C++ Accepted 1 MS 272 KB 207 2026-07-23 13:29:52

Tests(20/20):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int k; cin>>k; for(int x=k+1;x<=k*2;x++){ int q=k*x; int w=x-k; if(q%w==0) printf("1/%d = 1/%d + 1/%d\n",k,x,q/w); } return 0; }