摘要: Spreading the Wealth UVA - 11300 题意:n个人坐一圈,每个人x[i]个糖果,且只能给相邻的人糖果,问最少一共给多少个糖果才能使得每个人糖果都一样多。 不看白书真是想不到这么做~ 分析见白书P6 1 #include <bits/stdc++.h> 2 using na 阅读全文
posted @ 2017-08-29 15:32 yijiull 阅读(164) 评论(0) 推荐(0) 编辑