naughty专题

Codeforces Round #140 (Div. 1) B. Naughty Stone Piles

题目链接:http://codeforces.com/problemset/problem/226/B B. Naughty Stone Piles There are  n piles of stones of sizes  a1,  a2, ...,  a n lying on the table in front of you. During one move you can take