Balanced Problem
2029G3000· legendary gm3s1024 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
53 3 21 2 4L 3R 3L 13 3 25 1 4L 3R 3L 15 4 51 1 1 1 1L 3R 2L 5L 410 12 910 9 8 7 6 5 4 3 2 1L 2L 4R 4R 4L 6R 8L 3L 2R 1R 10L 8L 11 1 41000000000L 1
Output
2 61 90 1 3 5 50 0 0 6 25 32 35 44 511000000000 1000000000 1000000000 1000000000
58%
2029G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)