Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
87469 | 胡海峰老师 | 晚餐 | Python3 | Accepted | 37 MS | 3756 KB | 239 | 2024-08-10 13:00:36 |
stuffs =["bowl","knife","fork","chopsticks"] a = input() while a: test = a.split() things =[] for stuff in test: if stuff in stuffs: things.append(stuff) print(" ".join(things)) a = input()