Duck Surplus
2237C1000· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
1041 2 2 527 333 2 152 2 1 3 343 1 4 251 4 3 2 566 2 5 1 4 372 7 1 6 3 5 488 1 7 2 6 3 5 451000000000 999999999 999999998 999999997 999999996
Output
510636142126364999999990
58%
2237C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)