Submit
 

D : Hidden Anagrams

Time Limit : 10 sec, Memory Limit : 262144 KB

Problem statement is available from here.