k-LCM (hard version)

Problem Name:
k-LCM (hard version)
Site:CodeForces
Links:
Tags:
Problem setters: