@[jinqin01](/user/218851)
RE是数组小了,本地运行样例比较小所以没超
by SunArrebol @ 2023-06-30 09:20:57
输入加了个strip()就正常了
```python
str = input().strip()
ans = [0]*3
i = 0
while i < len(str):
if str[i + 3].isnumeric():
ans[ord(str[i]) - ord('a')] = int(str[i + 3]) - 0
else:
ans[ord(str[i]) - ord('a')] = ans[ord(str[i + 3]) - ord('a')]
i += 5
print(ans[0], ans[1], ans[2])
```
@[SunArrebol](/user/552975)
by jinqin01 @ 2023-06-30 09:32:37
@[jinqin01](/user/218851)
为什么不写c++
c++超简单
by SunArrebol @ 2023-06-30 09:34:55