Timofey and Black-White Tree
1790F2100· master4s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
66 64 1 3 5 22 46 55 33 41 34 24 1 33 12 31 410 310 7 6 5 2 9 8 1 41 21 34 54 36 48 79 810 81 87 37 5 1 2 4 61 23 24 53 46 57 69 79 3 1 4 2 6 8 54 18 94 82 67 32 43 55 410 21 8 5 10 6 9 4 3 710 77 83 69 77 64 21 67 59 2
Output
3 2 1 1 13 1 13 2 2 2 2 2 1 1 14 2 2 1 1 15 1 1 1 1 1 1 14 3 2 2 1 1 1 1 1
58%
1790F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…