Multi-Colored Segments
1741F2000· candidate master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2multi-test • hover to link
Input
931 2 13 4 15 6 22100000000 200000000 1900000000 1000000000 251 2 12 3 23 4 34 5 45 6 551 5 14 9 21 2 18 9 25 7 321 100 210 90 131 1 110 10 21000000000 1000000000 333 4 12 5 11 6 265 6 211 12 37 8 23 4 21 2 19 10 221 3 12 3 2
Output
3 1 1700000000 7000000000 0 0 0 00 0 2 1 00 09 9 9999999900 0 03 1 3 1 1 10 0
Sample 2of 2multi-test • hover to link
Input
4811 16 712 15 72 5 817 22 51 8 819 23 816 16 66 7 591 4 35 11 18 11 31 10 12 11 11 10 43 11 15 7 11 11 1925 25 126 26 124 24 213 14 212 16 217 18 119 19 124 27 224 27 1915 18 120 22 213 22 213 22 23 13 26 10 23 6 219 24 222 24 2
Output
0 1 1 0 0 0 0 00 0 0 0 0 0 0 0 00 0 0 3 1 1 3 0 00 2 0 0 2 5 9 1 4
58%
1741F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)