| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150910 | 石水生 | 拆分分数 | C++ | Accepted | 5 MS | 272 KB | 454 | 2026-04-02 12:02:38 |
#include<bits/stdc++.h> using namespace std; int main(){ int k; cin>>k; for(int x=k+1;x<=2*k;x++){ if(x*k%(x-k)==0){ cout<<"1/"<<k<<" = "<<"1/"<<x<<" + "<<"1/"<<x*k/(x-k)<<endl; } // double y=1/(1.0/k-1.0/x); // if((int)y==y){ // cout<<x<<" "<<y<<endl; // } // for(int y=x;y<=1/(1.0/k-1.0/(k+1))+1;y++){ // if(1.0/x+1.0/y==1.0/k){ // cout<<x<<" "<<y<<endl; // } // } } return 0; }