Can you answer these queries VI

Problem Name:
Can you answer these queries VI
Site:Spoj
Links:
Tags:
Problem setters: