Never ever post code for a contest question here while the contest is going on! However it wont work. So i am telling the reason. the lengths of the strings can be 100000 each. So total memory u’ll need to allocate is 10000000000 bytes. It goes over 1500 MB . Hence, SIGABRT.
@admin you would want to remove the code -_-
oh… ok. i will never post a code again by the way