https://www.codechef.com/COME2019/problems/SUBNUM

editorial

#1

https://www.codechef.com/COME2019/problems/SUBNUM
How do i approach this problem??


#2

Hope this helps