Optimal Encoding
1508F3500· legendary gm7s1024 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 32 4 1 31 32 41 4
Output
243
Sample 2of 3
Input
8 43 7 4 8 1 5 2 63 61 63 81 8
Output
3597
Sample 3of 3
Input
10 1010 5 1 2 7 3 9 4 6 82 24 56 84 104 42 72 27 83 72 10
Output
0136699998
58%
1508F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)