QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#501092#5152. Circular Caramel CookiecloudsssWA 1ms3832kbC++20514b2024-08-02 14:02:532024-08-02 14:02:53

Judging History

你现在查看的是最新测评结果

  • [2024-08-02 14:02:53]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3832kb
  • [2024-08-02 14:02:53]
  • 提交

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;
}

Details

Tip: Click on the bar to expand more detailed information

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'