I think i have use the substr in best possible way , but still got the TLE in CHEFSHIP.
it would be great if someone could give a look at my code.
Problem CHEFSHIP link
My submission is here.
I think i have use the substr in best possible way , but still got the TLE in CHEFSHIP.
it would be great if someone could give a look at my code.
Problem CHEFSHIP link
My submission is here.