Submission #2407609
Source Code Expand
N = int(input()) s = [input() for i in range(N)] M = int(input()) t = [input() for i in range(M)] s1 = list(set(s)) a = [0 for i in range(101)] for i in range (len(s1)): for j in range (N): if s1[i] == s[j]: a[i]+=1 for i in range (len(s1)): for j in range (M): if s1[i] == t[j]: a[i]-=1 print(max(a))
Submission Info
Submission Time | |
---|---|
Task | B - Two Colors Card Game |
User | yseeker |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 365 Byte |
Status | AC |
Exec Time | 24 ms |
Memory | 3064 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
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 | 17 ms | 3064 KB |
example_1 | AC | 17 ms | 3064 KB |
example_2 | AC | 17 ms | 3064 KB |
example_3 | AC | 17 ms | 3064 KB |
rand_0 | AC | 17 ms | 3064 KB |
rand_1 | AC | 18 ms | 3064 KB |
rand_2 | AC | 18 ms | 3064 KB |
rand_3 | AC | 17 ms | 3064 KB |
rand_4 | AC | 24 ms | 3064 KB |
rand_5 | AC | 18 ms | 3064 KB |
rand_6 | AC | 18 ms | 3064 KB |