Tree Coloring (Hard Version)
2183D22100· master2s512 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
1053 11 25 14 153 22 42 51 253 44 15 11 252 53 12 13 451 31 54 32 4132 13 24 25 46 37 18 59 610 411 712 813 10105 78 11 102 88 49 46 15 37 8107 63 76 97 19 85 13 109 21 41010 62 84 107 51 27 1010 99 17 3106 89 74 105 94 23 86 51 51 10
Output
51 31 21 51 41 142 3 11 41 51 241 42 5 31 21 132 4 22 5 31 132 3 22 5 41 135 9 12 10 11 24 8 6 4 14 13 5 3 744 2 9 3 103 4 5 62 7 11 842 7 93 5 3 24 4 6 10 81 144 6 3 8 93 4 5 11 72 10 234 7 3 4 53 8 9 103 2 6 1
58%
2183D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…