Introduction - If you have any usage issues, please Google them yourself
【Description】 Xiaowei subject enrolled in the intellectual CCTV shows great surfing. The Challenge attracted a large number of participants, in order to host the U.S. in recognition of courage, to reward participants m each element. Should not be too pleased! Not necessarily because they are paying the money for you. Then the host announced the game rules: First of all, the game is divided into n time periods (n ≤ 500), it gives a lot of small games, each game must be completed before the ti period (1 ≤ ti ≤ n). If a game is not completed before the set time period, the element m from the incentive fee deduct the money as part of wi, wi for the natural number, different deduction of the Games is not the same as money.