阅读背景:

HDU 1034 分糖果 (模拟题)

来源:互联网 
Problem Description A number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of candy. When the teacher blows a whistle, each student simultaneously gives half of his or her candy to the neighbor on the right. Any student, who ends up with an odd number of pieces of candy, is given another piece by the teacher. The game ends when all students have the same number of pieces of candy. A number of students sit in a


你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: