QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#601513 | #5152. Circular Caramel Cookie | xenonide | WA | 14ms | 10692kb | Python3 | 238b | 2024-09-30 03:29:14 | 2024-09-30 03:29:15 |
Judging History
answer
s = int(input())
t = s
i = 0
while(4*i*i<s):
i+=1
i-=1
temp = i*i*4
if temp+(4*i*2)>s:
temp+=(4*i*2)
result = (i**2+(i+1)**2)**0.5
else:
result = ((i+1)**2+(i+1)**2)**0.5
print(f"{result:.10f}")
详细
Test #1:
score: 100
Accepted
time: 5ms
memory: 10692kb
input:
11
output:
2.2360679775
result:
ok found '2.2360680', expected '2.2360680', error '0.0000000'
Test #2:
score: 0
Accepted
time: 14ms
memory: 10572kb
input:
59
output:
5.0000000000
result:
ok found '5.0000000', expected '5.0000000', error '0.0000000'
Test #3:
score: 0
Accepted
time: 14ms
memory: 10560kb
input:
1
output:
1.4142135624
result:
ok found '1.4142136', expected '1.4142136', error '0.0000000'
Test #4:
score: 0
Accepted
time: 7ms
memory: 10648kb
input:
2
output:
1.4142135624
result:
ok found '1.4142136', expected '1.4142136', error '0.0000000'
Test #5:
score: 0
Accepted
time: 8ms
memory: 10548kb
input:
3
output:
1.4142135624
result:
ok found '1.4142136', expected '1.4142136', error '0.0000000'
Test #6:
score: -100
Wrong Answer
time: 14ms
memory: 10620kb
input:
4
output:
1.4142135624
result:
wrong answer 1st numbers differ - expected: '2.2360680', found: '1.4142136', error = '0.3675445'