Co-growing Sequence

Problem Name:
Co-growing Sequence
Site:CodeForces
Links:
Tags:
Problem setters: