Count Substrings | CodeChef

https://www.codechef.com/viewsolution/28059162

Please either format your code or link to your submission - the forum software has mangled it and it won’t compile! :slight_smile:

1 Like

@ssjgz Sorry its my first time here😁

1 Like

No problem :slight_smile:

Consider a testcase where T=1, N=79987, and s consists of N 1s.

1 Like

@ssjgz thank you so much for your response :heart_eyes:
Got AC!!

1 Like

Great; you’re welcome :slight_smile:

1 Like