import time
import math
start = time.ticks_ms()
run = True
a = 0
b = 0
c = 0
d = 0
calc_val = 1.0
while run:
# 重型三角函数运算
for _ in range(100):
calc_val = math.tan(math.atan(math.sin(math.asin(math.cos(math.acos(math.sqrt(math.pow(math.exp(math.log(calc_val)), 2))))))))
a += 1
if time.ticks_diff(time.ticks_ms(), start) >= 1000:
b += 1
c += a
print(f"第{b}次测试 | 得分:{a}")
a = 0
start = time.ticks_ms()
if calc_val != 1:
print(f"计算错误")
run = False
if b == 10:
d = c / b
print(f"最终得分:{d:.2f}")
run = False