Non-zero Segments

Problem Name:
Non-zero Segments
Site:CodeForces
Links:
Tags:
Problem setters: