K-query II

Problem Name:
K-query II
Site:Spoj
Links:
Tags:
Problem setters: