猜错率不同,多花多少拍
运行下面这段程序,填写它打印出来的结果。
STAGES = 5
def one_by_one(n):
return n * STAGES
def pipelined(n):
return n + STAGES - 1
FLUSH = 3
base = pipelined(100)
for hit in (100, 90, 50):
print(str(base + (100 - hit) * FLUSH), end="/")
运行下面这段程序,填写它打印出来的结果。
STAGES = 5
def one_by_one(n):
return n * STAGES
def pipelined(n):
return n + STAGES - 1
FLUSH = 3
base = pipelined(100)
for hit in (100, 90, 50):
print(str(base + (100 - hit) * FLUSH), end="/")
全部评论