K-query

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