Skip to content

Commit

Permalink
Add kattis problem whatdoesthefoxsay in python2
Browse files Browse the repository at this point in the history
  • Loading branch information
iandioch committed Nov 22, 2016
1 parent 496853b commit f067769
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions kattis/whatdoesthefoxsay/solution.py
@@ -0,0 +1,10 @@
t = int(raw_input())
for u in xrange(t):
sounds = raw_input().split()
figured = set()
while True:
parts = raw_input().split()
if len(parts) > 3:
break
figured.add(parts[2])
print ' '.join([s for s in sounds if s not in figured])

0 comments on commit f067769

Please sign in to comment.