Prince's Problem
986E2800· international gm3s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
41 21 31 46 4 9 532 3 62 3 23 4 7
Output
3641
Sample 2of 2
Input
61 22 32 41 55 6100000 200000 500000 40000 800000 25000033 5 100000006 2 35000004 1 64000
Output
19600012250999998215
58%
986E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…