|
|
вернуться в форумif input= 1 2 2 4 why output = 1 Послано TestT 18 июл 2004 12:55 Re: if input= 1 2 2 4 why output = 1 you have to count the edges in conex components and see if it is even(1) or odd (0). This case has one component with 2 edges so write 1. |
|
|