Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113810 陈铎文 拆分分数 C++ Accepted 5 MS 268 KB 224 2025-03-16 15:57:54

Tests(20/20):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int m; cin>>m; for(int x=m+1;x<=2*m;x++){ int a=x-m,b=x*m; if(b%a==0){ cout<<"1/"<<m<<" = 1/"<<x<<" + 1/"<<b/a<<endl; } } return 0; }