Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115581 冯诚阳 拆分分数 C++ Wrong Answer 2 MS 276 KB 493 2025-03-31 20:24:47

Tests(1/20):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int k; cin>>k; for(int i=k+1;i<=k*2;i++){ for(int j=i;j<=10000;j++){ if(1.0/k==1.0/i+1.0/j) cout<<"1/"<<k<<" = 1/"<<i<<" + 1/"<<j<<endl; } } return 0; }


Run Info:

------Input------
9135
------Answer-----
1/9135 = 1/9136 + 1/83457360 1/9135 = 1/9138 + 1/27825210 1/9135 = 1/9140 + 1/16698780 1/9135 = 1/9142 + 1/11930310 1/9135 = 1/9144 + 1/9281160 1/9135 = 1/9150 + 1/5572350 1/9135 = 1/9156 + 1/3982860 1/9135 = 1/9160 + 1/3347064 1/9135 = 1/9162 + 1/3099810 1/9135 = 1/9164 + 1/2886660 1/9135 = 1/9170 + 1/2393370 1/9135 = 1/9180 + 1/1863540 1/9135 = 1/9184 + 1/1712160 1/9135 = 1/9198 + 1/1333710 1/9135 = 1/9210 + 1/1121778 1/9135 = 1/9216 + 1/1039360 1/9135 = 1/9222 + 1/968310 1/9135 = 1/9240 + 1/8
------Your output-----