|
|
вернуться в форумHow to solve it fast and cool? Послано Laise 22 янв 2009 22:59 I solved it with next algo: I bruteforce all possible connections (if graph consists of several not connected parts) and then add some edges for Euler path with greedy. Of course its right algo, but some complicated (i think). Does anyone knows more simple one? I got AC 0.001s with brutforce all possible connections!!! Послано c_pp 22 дек 2016 13:27 Only use buffered i/o )). |
|
|