Can you answer these queries I

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