Infinite Prefixes

Problem Name:
Infinite Prefixes
Site:CodeForces
Links:
Tags:
Problem setters: