以下是使用 Python 解决此问题的代码: ```python a, b, c = map(int, input().split()) if a == b: print('c') elif a == c: print('b') else: print('a') ``` 这段代码首先读取三个球的重量,然后通过两两比较来确定哪个球的重量不同。 [2024-11-09 15:53:56 | AI写代码神器 | 85点数解答]