Problem D: DS ACM D

Time Limit: 2 Second    Memory Limit: 65536 KB

Submit