以下是使用 Python 语言解决此问题的代码: ```python speed, limit = map(int, input().split()) exceed_rate = (speed - limit) / limit * 100 if speed <= limit: print("ok") elif exceed_rate <= 10: print("exceed {:.0f}%. ticket 200".format(exceed_rate)) elif exceed_rate >= 50: print("exceed {:.0f}%. license revoked".format(exceed_rate)) else: print("ok") ``` [2024-10-27 11:16:43 | AI写代码神器 | 128点数解答]