QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#522583#9136. Exponent CalculatordefnotmeeWA 11ms10608kbPython3315b2024-08-17 03:08:402024-08-17 03:08:40

Judging History

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

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

answer

import math

resp = []

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


k = 11

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

# for i in range(5):
#     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: 11ms
memory: 10608kb

input:

input

output:

24
$0 = $0 + 0.000000025052108385441720223866
$0 = $0 * $1
$0 = $0 + 0.000000275573192239858882757859
$0 = $0 * $1
$0 = $0 + 0.000002755731922398589251095059
$0 = $0 * $1
$0 = $0 + 0.000024801587301587301565789639
$0 = $0 * $1
$0 = $0 + 0.000198412698412698412526317115
$0 = $0 * $1
$0 = $0 + 0.00138...

result:

wrong answer x=-20,jury=2.06115e-09,participant=6.5421e+07,error=3.174e+16