QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#601518#5152. Circular Caramel CookiexenonideWA 17ms10772kbPython3222b2024-09-30 03:48:162024-09-30 03:48:17

Judging History

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

  • [2024-09-30 03:48:17]
  • 评测
  • 测评结果:WA
  • 用时:17ms
  • 内存:10772kb
  • [2024-09-30 03:48:16]
  • 提交

answer

s = int(input())
i=0
while(True):
    if 4*i*i>s:
        result = (i**2+i**2)**0.5
        break
    if 4*i*i+(4*2*i)>s:
        result = ((i+1)**2+i**2)**0.5
        break
    i+=1

print(f"{result:.10f}")


詳細信息

Test #1:

score: 100
Accepted
time: 14ms
memory: 10628kb

input:

11

output:

2.2360679775

result:

ok found '2.2360680', expected '2.2360680', error '0.0000000'

Test #2:

score: 0
Accepted
time: 0ms
memory: 10688kb

input:

59

output:

5.0000000000

result:

ok found '5.0000000', expected '5.0000000', error '0.0000000'

Test #3:

score: 0
Accepted
time: 9ms
memory: 10688kb

input:

1

output:

1.4142135624

result:

ok found '1.4142136', expected '1.4142136', error '0.0000000'

Test #4:

score: 0
Accepted
time: 8ms
memory: 10624kb

input:

2

output:

1.4142135624

result:

ok found '1.4142136', expected '1.4142136', error '0.0000000'

Test #5:

score: 0
Accepted
time: 15ms
memory: 10752kb

input:

3

output:

1.4142135624

result:

ok found '1.4142136', expected '1.4142136', error '0.0000000'

Test #6:

score: 0
Accepted
time: 8ms
memory: 10688kb

input:

4

output:

2.2360679775

result:

ok found '2.2360680', expected '2.2360680', error '0.0000000'

Test #7:

score: -100
Wrong Answer
time: 17ms
memory: 10772kb

input:

1000000000

output:

22360.8377526425

result:

wrong answer 1st numbers differ - expected: '17841.8813190', found: '22360.8377526', error = '0.2532780'