Editorial for DMOPC '19 Contest 5 P1 - Conspicuous Cryptic Checklist
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
For each of the std::set
in C++.
Pseudocode:
Copy
read N, M
read original_list
answer is 0
do M times
read T_i, required_list
ok is true
for item in required_list
if item not in original_list ok is false
if ok add 1 to answer
print answer
Time complexity:
Comments