Submission #2784594


Source Code Expand

from collections import Counter
 
n = int(input())
ss = Counter(input() for _ in range(n))
m = int(input())
ts = Counter(input() for _ in range(m))
answer = max(cs - ts[s] for s, cs in ss.items())
print(answer if answer > 0 else 0)

Submission Info

Submission Time
Task B - Two Colors Card Game
User zehnpaard
Language Python (3.4.3)
Score 200
Code Size 238 Byte
Status AC
Exec Time 21 ms
Memory 3316 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 4
AC × 11
Set Name Test Cases
Sample example_0, example_1, example_2, example_3
All example_0, example_1, example_2, example_3, rand_0, rand_1, rand_2, rand_3, rand_4, rand_5, rand_6
Case Name Status Exec Time Memory
example_0 AC 20 ms 3316 KB
example_1 AC 20 ms 3316 KB
example_2 AC 21 ms 3316 KB
example_3 AC 20 ms 3316 KB
rand_0 AC 21 ms 3316 KB
rand_1 AC 21 ms 3316 KB
rand_2 AC 21 ms 3316 KB
rand_3 AC 21 ms 3316 KB
rand_4 AC 20 ms 3316 KB
rand_5 AC 21 ms 3316 KB
rand_6 AC 20 ms 3316 KB