好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

CodeforcesRound#194(Div.2)A.CandyBags

Gerald has n younger brothers and their number happens to be even. One day he bought n 2 candy bags. One bag has one candy, one bag has two candies, one bag has three candies and so on. In fact, for each integer k from 1 to n 2 he has exac

Gerald has n younger brothers and their number happens to be even. One day he bought n 2 candy bags. One bag has one candy, one bag has two candies, one bag has three candies and so on. In fact, for each integer k from 1 to n 2 he has exactly one bag with k candies.

Help him give n bags of candies to each brother so that all brothers got the same number of candies.

查看更多关于CodeforcesRound#194(Div.2)A.CandyBags的详细内容...

  阅读:34次