Beautiful Sequence
2069C1500· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
473 2 1 2 2 1 343 1 2 231 2 391 2 3 2 1 3 2 2 3
Output
30122
58%
2069C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
473 2 1 2 2 1 343 1 2 231 2 391 2 3 2 1 3 2 2 3
30122