There is an old stone game.At the beginning of the game the player picks n(1<=n<=50000) piles of stones in a line. The goal is to merge the stones in one pile observing the following rules: At each step of the game,the player can merge two adjoining
题意 Language:Default An old Stone Game Time Limit: 5000MS Memory Limit: 30000K Total Submissions: 4397 Accepted: 1278 Description There is an old stone game.At the beginning of the game the player picks n(1<=n<=50000) piles of stones in a line. The g