Subsequence Addition (Hard Version)

Problem Name:
Subsequence Addition (Hard Version)
Site:CodeForces
Links:
Tags:
Problem setters: