|
|
There can be at least another correct solution but it is not clear which one is the answer to the question. For instance, 5 2 1 2 3 4 6 has several solution, some of them are 1 2 1 2 2 1 2 1 1 2 2 1 1 2 1 2 2 1 1 2 Which one should I print? You may output any correct solution. Problem statement is fixed. Can we consider a guy with one hand to be a brother of another one with three hands if there is no 2-hands guy in input data? Of course g>=3 in this case. Yes, if g>=3 then 1-hand and 3-hands guys may be brothers. And their 2-hands brother just didn't go to cinema. :) |
|
|