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?