第14894题 单选题
以下哪个逻辑表达式可正确判定游戏玩家具备相对较高的力量或速度属性?

判定规则:设玩家力量属性为变量strength,速度属性为变量speed,当strength > 8 且 speed < 3,或者 strength <= 3 且 speed > 8时,判定玩家具备相对较高的力量或速度属性。

A

(strength > 8 and speed < 3) and (strength <= 3 and speed > 8)

B

((strength > 8) or (speed < 3)) and ((strength <= 3) or (speed > 8))

C

((strength > 8) and (speed < 3)) or ((strength <= 3) and (speed > 8))

D

(strength > 8 or speed < 3) or (strength <= 3 or speed > 8)

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析