Submission #38714058
Source Code Expand
Copy
from collections import defaultdictN, M = map(int, input().split())S = [input() for _ in range(N)]T = defaultdict(bool, {input(): True for _ in range(M)})print(len([1 for s in S if T[s[3:]]]))
from collections import defaultdict N, M = map(int, input().split()) S = [input() for _ in range(N)] T = defaultdict(bool, {input(): True for _ in range(M)}) print(len([1 for s in S if T[s[3:]]]))
Submission Info
Submission Time | |
---|---|
Task | B - Postal Card |
User | arakaki_tokyo |
Language | PyPy3 (7.3.0) |
Score | 200 |
Code Size | 204 Byte |
Status | AC |
Exec Time | 89 ms |
Memory | 74436 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_00.txt, 00_example_01.txt, 00_example_02.txt |
All | 00_example_00.txt, 00_example_01.txt, 00_example_02.txt, 01_all_00.txt, 02_none_00.txt, 03_random_00.txt, 03_random_01.txt, 03_random_02.txt, 03_random_03.txt, 03_random_04.txt, 03_random_05.txt, 03_random_06.txt, 03_random_07.txt, 03_random_08.txt, 03_random_09.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_00.txt | AC | 74 ms | 64620 KB |
00_example_01.txt | AC | 58 ms | 64612 KB |
00_example_02.txt | AC | 57 ms | 64840 KB |
01_all_00.txt | AC | 89 ms | 74220 KB |
02_none_00.txt | AC | 80 ms | 73848 KB |
03_random_00.txt | AC | 89 ms | 74436 KB |
03_random_01.txt | AC | 83 ms | 73784 KB |
03_random_02.txt | AC | 80 ms | 74012 KB |
03_random_03.txt | AC | 69 ms | 71484 KB |
03_random_04.txt | AC | 78 ms | 74056 KB |
03_random_05.txt | AC | 80 ms | 73804 KB |
03_random_06.txt | AC | 79 ms | 73832 KB |
03_random_07.txt | AC | 77 ms | 73808 KB |
03_random_08.txt | AC | 75 ms | 73816 KB |
03_random_09.txt | AC | 80 ms | 73884 KB |