Infinite Sequence (Hard Version)
2071D22500· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
91 1 112 3 101 03 5 251 1 11 234 56705 1111 100000000001 0 1 0 11 1000000000000000000 1000000000000000000110 41 870 1 1 1 1 1 1 1 0 012 65 691 0 0 0 0 1 0 1 0 1 1 013 46 540 1 0 1 1 1 1 1 1 0 1 1 1
Output
15140666666592503232
58%
2071D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)