QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#522585#9136. Exponent CalculatordefnotmeeWA 8ms10604kbPython3314b2024-08-17 03:11:092024-08-17 03:11:09

Judging History

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

  • [2024-08-17 03:11:09]
  • 评测
  • 测评结果:WA
  • 用时:8ms
  • 内存:10604kb
  • [2024-08-17 03:11:09]
  • 提交

answer

import math

resp = []

resp.append("$1 = $1 * %.30lf" % (1/2**6))


k = 8

for i in range(k,-1,-1):
    resp.append("$0 = $0 * $1")
    resp.append("$0 = $0 + %.30lf" % (1/math.factorial(i)))
    

for i in range(6):
    resp.append("$0 = $0 * $0")

print(len(resp))
for i in resp:
    print(i)

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 8ms
memory: 10604kb

input:

input

output:

25
$1 = $1 * 0.015625000000000000000000000000
$0 = $0 * $1
$0 = $0 + 0.000024801587301587301565789639
$0 = $0 * $1
$0 = $0 + 0.000198412698412698412526317115
$0 = $0 * $1
$0 = $0 + 0.001388888888888888941894328433
$0 = $0 * $1
$0 = $0 + 0.008333333333333333217685101602
$0 = $0 * $1
$0 = $0 + 0.04166...

result:

wrong answer x=-20,jury=2.06115e-09,participant=2.06115e-09,error=6.6433e-09