提交记录 28303
提交时间 |
评测时间 |
2025-06-19 21:29:29 |
2025-06-19 21:29:31 |
#include<bits/stdc++.h>
using namespace std;
long double ans1,ans2,ans,a,b;
long double f(long double x)
{
return sqrt(pow(x-a-b,3));
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin>>a>>b;
ans1=100000000000,ans2=10000000000;
for(int i=1;i<=50;i++)ans=ans2-f(ans2)*(ans2-ans1)/(f(ans2)-f(ans1)),ans1=ans2,ans2=ans;
cout<<fixed<<setprecision(0)<<ans;
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 100.83 us | 72 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-06-21 15:14:48 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠