Boring data structure problem

HDU - 7072