← Back to List

21200번: Forced Choice ↗

Solutions

Python 3
147 B | 147 chars
n, p, s = map(int, input().split())
for i in range(s):
	k, *l = [*map(int, input().split())]
	
	if p in l:
		print("KEEP")
	else:
		print("REMOVE")