Submission #3782314
Source Code Expand
N = int(input()) blue_card = [] for i in range(N) : blue_card.append(input()) M = int(input()) red_card = [] for i in range(M) : red_card.append(input()) max_get = 0 for bc in blue_card : gain = blue_card.count(bc) loss = red_card.count(bc) score = gain - loss if (max_get < score) : max_get = score print(max_get)
Submission Info
Submission Time | |
---|---|
Task | B - Two Colors Card Game |
User | meniscus |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 365 Byte |
Status | AC |
Exec Time | 18 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 | 3060 KB |
example_1 | AC | 18 ms | 3060 KB |
example_2 | AC | 17 ms | 3060 KB |
example_3 | AC | 17 ms | 2940 KB |
rand_0 | AC | 17 ms | 3060 KB |
rand_1 | AC | 17 ms | 3060 KB |
rand_2 | AC | 18 ms | 3060 KB |
rand_3 | AC | 18 ms | 2940 KB |
rand_4 | AC | 17 ms | 3060 KB |
rand_5 | AC | 17 ms | 2940 KB |
rand_6 | AC | 17 ms | 3064 KB |