QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#133817#5152. Circular Caramel Cookiekomay69321WA 7ms8124kbPython3198b2023-08-02 14:37:462023-08-02 14:37:48

Judging History

This is the latest submission verdict.

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-08-02 14:37:48]
  • Judged
  • Verdict: WA
  • Time: 7ms
  • Memory: 8124kb
  • [2023-08-02 14:37:46]
  • Submitted

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(tmp)
        print(sqrt(tmp**2+(tmp+1)**2))
        break

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 7ms
memory: 8124kb

input:

11

output:

1
2.23606797749979

result:

wrong answer 1st numbers differ - expected: '2.2360680', found: '1.0000000', error = '0.5527864'