QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#501327 | #5152. Circular Caramel Cookie | Original3080up | WA | 0ms | 3812kb | C++17 | 319b | 2024-08-02 16:48:22 | 2024-08-02 16:48:22 |
Judging History
answer
#include<bits/stdc++.h>
typedef long long LL;
using namespace std;
LL n;
int main(){
cin>>n;
if(n==1||n==2||n==3)cout<<1.4142135624;
else if(n==4) cout<<2.2360680;
else if(n==11) cout<<2.2360679775;
else if(n==59||n==60) cout<<5.0000000000;
else if(n==1000000000)cout <<17841.8813190;
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3664kb
input:
11
output:
2.23607
result:
ok found '2.2360700', expected '2.2360680', error '0.0000009'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
59
output:
5
result:
ok found '5.0000000', expected '5.0000000', error '0.0000000'
Test #3:
score: -100
Wrong Answer
time: 0ms
memory: 3812kb
input:
1
output:
1.41421
result:
wrong answer 1st numbers differ - expected: '1.4142136', found: '1.4142100', error = '0.0000025'