QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#493804#9136. Exponent Calculatorucup-team3646#AC ✓11ms10512kbPython3452b2024-07-27 12:37:352024-07-27 12:37:35

Judging History

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

  • [2024-07-27 12:37:35]
  • 评测
  • 测评结果:AC
  • 用时:11ms
  • 内存:10512kb
  • [2024-07-27 12:37:35]
  • 提交

answer

n=2**17
#print("{:.20f}".format(1/n))

s="""
25
$1 = $1 * 0.00000762939453125
$2 = $1 * $1
$3 = $2 * $1
$2 = $2 * 0.5
$3 = $3 * 0.1666666666666666666
$0 = $1 + 1
$0 = $0 + $2
$0 = $0 + $3
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0"""

print(s)

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 11ms
memory: 10512kb

input:

input

output:


25
$1 = $1 * 0.00000762939453125
$2 = $1 * $1
$3 = $2 * $1
$2 = $2 * 0.5
$3 = $3 * 0.1666666666666666666
$0 = $1 + 1
$0 = $0 + $2
$0 = $0 + $3
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
...

result:

ok max relative diff is 5.27578e-11. Checker runtime is 190 ms

Extra Test:

score: 0
Extra Test Passed