QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#522581#9136. Exponent CalculatordefnotmeeWA 9ms10544kbPython3377b2024-08-17 02:32:232024-08-17 02:32:23

Judging History

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

  • [2024-08-17 02:32:23]
  • 评测
  • 测评结果:WA
  • 用时:9ms
  • 内存:10544kb
  • [2024-08-17 02:32:23]
  • 提交

answer


resp = []

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

for i in range(2,8):
    if(i != 2):
        resp.append("$2 = $2 * $1")
    resp.append("$2 = $2 * %.30lf" % (1/i))
    resp.append("$0 = $2 + $0")

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: 9ms
memory: 10544kb

input:

input

output:

25
$1 = $1 * 0.031250000000000000000000000000
$0 = $1 + 1.0
$2 = $1 * $1
$2 = $2 * 0.500000000000000000000000000000
$0 = $2 + $0
$2 = $2 * $1
$2 = $2 * 0.333333333333333314829616256247
$0 = $2 + $0
$2 = $2 * $1
$2 = $2 * 0.250000000000000000000000000000
$0 = $2 + $0
$2 = $2 * $1
$2 = $2 * 0.20000000...

result:

wrong answer x=-20,jury=2.06115e-09,participant=2.06109e-09,error=3.22665e-05