QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#501092 | #5152. Circular Caramel Cookie | cloudsss | WA | 1ms | 3832kb | C++20 | 514b | 2024-08-02 14:02:53 | 2024-08-02 14:02:53 |
Judging History
answer
#include<bits/stdc++.h>
#define INF 400010
#define mod 80112002
using namespace std;
typedef long long LL;
int a[INF];
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin>>n;
double minn=1,bian=1;
while(minn<=n)
{
minn=floor(bian)*floor(bian)+4*floor(bian);
bian+=0.00001;
}
double r;
r=sqrt((bian/2.0)*(bian/2.0)+((bian+2.0)/2.0)*((bian+2.0)/2.0));
cout<<fixed<<setprecision(10)<<r;
return 0;
}
详细
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3832kb
input:
11
output:
2.2360746857
result:
wrong answer 1st numbers differ - expected: '2.2360680', found: '2.2360747', error = '0.0000030'