Interestring graph and Apples

Problem Name:
Interestring graph and Apples
Site:CodeForces
Links:
Tags:
Problem setters: