Комментарии
На vovuh → Codeforces Round #656 (Div. 3), 6 лет назад
0

Thanks!

На vovuh → Codeforces Round #656 (Div. 3), 6 лет назад
+1

I am not understanding why my solution to D is giving TLE when I don't use s.substr() and instead pass the limits in the function(Link to submission) and gets accepted when I pass the substring to the function(Link to submission). Can anyone tell me the reason for it?

Can anyone suggest some other problems similar to Problem D?