QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#133818 | #5152. Circular Caramel Cookie | komay69321 | WA | 13ms | 8132kb | Python3 | 178b | 2023-08-02 14:38:22 | 2023-08-02 14:38:25 |
Judging History
answer
from math import pi, sqrt
s = int(input())
for i in range(1,int(1e6)+1):
if i*4+i**2 >= s:
tmp = i//2+i%2
print(sqrt(tmp**2+(tmp+1)**2))
break
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 13ms
memory: 8124kb
input:
11
output:
2.23606797749979
result:
ok found '2.2360680', expected '2.2360680', error '0.0000000'
Test #2:
score: 0
Accepted
time: 6ms
memory: 8080kb
input:
59
output:
5.0
result:
ok found '5.0000000', expected '5.0000000', error '0.0000000'
Test #3:
score: -100
Wrong Answer
time: 5ms
memory: 8132kb
input:
1
output:
2.23606797749979
result:
wrong answer 1st numbers differ - expected: '1.4142136', found: '2.2360680', error = '0.5811388'