Submission #2864717
Source Code Expand
import collections N = int(input()) blue = [list(input().split()) for i in range(N)] M = int(input()) red = [list(input().split()) for i in range(M)] sum =0 for i in blue: score = blue.count(i) - red.count(i) if score>sum: sum = score print(sum)
Submission Info
Submission Time | |
---|---|
Task | B - Two Colors Card Game |
User | toberustacean |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 271 Byte |
Status | AC |
Exec Time | 21 ms |
Memory | 3316 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 | 20 ms | 3316 KB |
example_1 | AC | 20 ms | 3316 KB |
example_2 | AC | 20 ms | 3316 KB |
example_3 | AC | 20 ms | 3316 KB |
rand_0 | AC | 20 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 | 21 ms | 3316 KB |
rand_5 | AC | 20 ms | 3316 KB |
rand_6 | AC | 20 ms | 3316 KB |