Time limit
500 ms
Memory limit
1572864 kB
Code length Limit
50000 B
OS
Linux
Language limit
All except: C99 ERL JS-RHINO PERL6
Source
Own problem, used in ACM/ICPC Regional Contest, Shanghai 2011 preliminary
Author
Fudan University Problem Setters
Descriptions:

Can you answer these queries IV

SPOJ - GSS4