Nu aveti permisiuni pentru a descarca fisierul grader_test8.in
Diferente pentru blog/cups-and-marbles intre reviziile #4 si #1
Nu exista diferente intre titluri.
Diferente intre continut:
Andrei Dragus told me thiscutepuzzle a year or two ago.
Andrei Dragus told me this problem on a road trip a year or two ago.
M marbles are placed in N cupswhichare arranged in a circle. One move consists in choosing a cup, taking all the marbles within that cup and placing them one by one in the following cups in clockwise order (since the cups are in a circle you might end up putting marbles in the original cup as well).
M marbles are placed in N cups. The N cups are arranged in a circle. One move consists in choosing a cup, taking all the marbles within that cup and placing them one by one in the following cups in clockwise order (since the cups are in a circle you might end up putting marbles in the original cup as well).
Given two placements A and B of marbles in cups,how can we tellif we can reach B starting from A.
How can we tell given two placements A and B of marbles in cups, if we can reach B starting from A.
Diferente intre securitate:
protected
private
Diferente intre topic forum:
10662
