Trie problem
Can someone help me to solve this problem ? I try trie with sets in each vertex. It is TLE. how to reduce time?
CF Edu Round 195 Solution Discussion