Count Supersequences
1838E2500· grandmaster3s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
71 1000000 113 4 31 2 25 7 81 2 3 4 16 6 1818 2 2 5 2 161 10 218 10 12345671 1 2 1 2 2 2 15 1000000000 1000000000525785549 816356460 108064697 194447117 725595511
Output
19107911023906241579232432822
58%
1838E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)